带有ASP.NET Web表单的CSS [英] Css with asp.net web form
问题描述
嗨
我已经学习过asp.net Web表单,但问题是Web表单设计简单而且我知道CSS,但是如何将ASP.NET Web表单与CSS连接以及它如何工作?
如果您有任何视频或书籍,请.
谢谢
我尝试过的事情:
构建一个CSS并在完成后使用asp.net进行编码和标记,但仍然无法正常工作
Hi
i have learn asp.net web form and the problem is the web form design is simple and i know the css but how can i connect asp.net web form with css and how its work ?
please if you have any video or book.
thanks
What I have tried:
to build a css and make it when i done i take the cods and tags of it with asp.net but still not work
推荐答案
如果您想应用一些CSS在ASP.NET控件上进行样式设置,可以为该元素提供一个类:
If you want to apply some CSS styling on an ASP.NET control, you can give this element a class:
<asp:Label CssClass="yourCssClass"></asp:Label>
(其中Label
只是一个示例)
并在您的CSS中:
(where Label
is just an example)
and in your CSS:
.yourCssClass {
/* styling */
}
如果要将CSS应用于HTML元素而不是ASP.NET控件之一,请设置该元素的class
属性:
If you want to apply the CSS on an HTML element rather than one of the ASP.NET controls, set the class
attribute of that element:
<span class="yourCssClass"></span>
(其中span
只是一个示例)
(where span
is just an example)
这篇关于带有ASP.NET Web表单的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!