日期:2014-05-17  浏览次数:20606 次

菜鸟的古怪问题
#content   {
float:   left;
padding:   10px;
margin:   20px;
background:   #FFF;
border:   5px   solid   #666;
width:   400px;   /*   ie5win   fudge   begins   */
voice-family:   "\ "}\ " ";
voice-family:inherit;
width:   370px;
}
html> body   #content   {
width:   370px;   /*   ie5win   fudge   ends   */
}


在#content   为什么设了两个width?
html> body   #content   什么意思?怎么会有> 号?



------解决方案--------------------
设置IE和其它浏览器宽度的方法
> 是子节点选择符
------解决方案--------------------
为了各个浏览器兼容 而采用的方法
注释中写了 ie5 采用html> body #content 这种方法控制#content元素的宽度