皮肤主题化和CSS类 [英] Skin theming and CSS Class
问题描述
如果我分配paricular CSS类控制,它hnherits类的,但如果我同时给肌肤ID,以同一控制那么这个皮肤ID覆盖的CSS类。
为什么会这样?
If I am assigning a paricular css class to a control ,it hnherits the class but if i simultaneously give the skin id to the same control then this skin ID overrides the CSS class. Why this is happening?
现在,如果我使用!在CSS样式表重要,那么CSS类属性由控制继承。
.lblUserName1
{
宽度:400像素;
行高:32PX;
!颜色:红色重要;
字体重量:大胆的;
背景颜色:#669999;
}
请帮我...其制造混乱的堆..
Now if I am using !important in the css stylesheets then css class property is inherited by the control. .lblUserName1 { width: 400px; line-height: 32px; color: Red !important; font-weight: bold; background-color: #669999; } Please help me...Its creating a heap of confusion..
推荐答案
皮肤可能使用内联CSS在你的控制样式属性这种方式由于CSS herarchy你的皮肤主题定义将覆盖您在其中居住类中定义了什么外部.css文件。
Skin probably uses inline CSS in style attribute of your control this way due to CSS herarchy what you define in skin theme will override what you have defined in class which resides external .css file.
调试CSS和HTML浏览该code本身的最佳方式。
Best way to debug CSS and HTML is viewing the code itself.
这篇关于皮肤主题化和CSS类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!