Home > Net >  Could you tell me a question about asp.net
Could you tell me a question about asp.net

Time:09-24

How to use CSS vs. Aspx file

CodePudding user response:

How to use in your HTML file, here is how to use, can be in. Aspx on & lt; Style> </style> Block, can also refer to the CSS file,

CodePudding user response:

Good, the effect is the same?

CodePudding user response:

Webform server controls to remember the kindness of CSS properties, CSS belong to a single block, familiar with CSS, by class or id or other way can be reference,

CodePudding user response:

Write a & lt; Style> </style> Inside to write CSS style


<style>
. Layui - form - label {
float: left;
display: block;
Padding: 9 px 15 px;
Width: 90 px;
The font - weight: 400;
line-height: 20px;
The text - align: right;
}

. Layui - input - the inline {
display: block;
width: 95%;
Padding - left: 10 px;
}

. Layui - input - the inline - BTN {
display: block;
Width: 90%;
Padding - left: 10 px;
}
</style>






CodePudding user response:

,,,,,,,,,
How you normally Html reference?

CodePudding user response:

Won't, then copy the CSS to the project,
Then in vs solution interface, pull the CSS file on the aspx page,
It will automatically generate quotes, and relative path

CodePudding user response:

Accurately, in. Aspx referenced in the CSS file is such a reference & lt; %=Url. Content (" ~/file path/file name ") % & gt;

CodePudding user response:

Learning under the framework
https://blog.csdn.net/dengfeiling/article/details/103627862

CodePudding user response:

1. Can you create a solution on the CSS file used to store the CSS file, and then you need to use the aspx page into this page, will automatically help you refer to the CSS file
2. Writing seyle label on the back page, and is just as writing style and HTML
  • Related