[英]td css works in chrome but not in IE
我想在表格中发布一些表格,表格中的表格td宽度,BG颜色不同。 我设计了以下CSS,这些CSS在Chrome和Fire Fox中工作正常,但没有在Internet Explorer中提供所需的输出。 在这方面,谁能帮助我。
HTML:
<td class="td_1">Games</td>
<td class="td_2">Sports</td>
CSS:
.td_1 {
width:200px;
height:50px;
max-width:200px;
min-width:200px;
max-height:50px;
min-height:50px;
background-color: yellow;
color: red;
}
.td_2 {
width:300px;
height:50px;
max-width:300px;
min-width:300px;
max-height:50px;
min-height:50px;
background-color: blue;
color: white;
}
世界上没有办法得到错误的颜色。 请注意您的Internet Explorer的用户代理样式不会覆盖您的样式表。 尝试使用reset.css工作表来重置所有IE的默认值。
在所有其他样式表之前,首先包含reset.css。 你可以在这里免费获得
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.