在site.css中进行更改不会产生任何影响 [英] making change in site.css does not make any effect why
本文介绍了在site.css中进行更改不会产生任何影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在mvc 3 razor视图中,我正在尝试在我的标头表中进行更改。以下是site.css中的一个。
In mvc 3 razor view I'm trying to make changes in the my header table. the following is the one in the site.css.
table th {
padding: 6px 5px;
text-align: left;
background-color: #e8eef4;
border: solid 1px #e8eef4;
font-weight: bold;
}
我尝试过更改颜色,但确实如此什么都不做,但它保持不变。没有变化为什么......
但是对table元素(在site.css中)进行更改会受到影响。
I tried changing colors but it does not do anything but it stays the same. No changes are made why is that...
but making changes in table element ( in site.css) get affected.
table {
border: solid 1px #e8eef4;
border-collapse: collapse;
font-size: 120%; width: 100%;
border-spacing: 0px;
background-color: #e7e7e7;
color: #666;
clear: both;
}
推荐答案
您使用的是< th>你的HTML中的元素?如果没有,那么这就是< table>元素显示更改。
第一种样式仅限于表格的子元素,而不是表格本身。
Are you using the <th> element in your html? If not, then that is why the <table> element shows the changes.
The first style is restricted to th sub-elements of table, not the table itself.
这篇关于在site.css中进行更改不会产生任何影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文