[英]CSS compatibility issues with IE8
I'm using table to show some data,but has the following BUG with IE8: 我正在使用表来显示一些数据,但是在IE8中具有以下错误:
The right of the text is hidden. 文本的右侧被隐藏。
I have set the following properties: 我设置了以下属性:
table-layout:fixed;
(Do not want to modify this.) td {padding: 3px;}
Debugged with IE8,Found the following problem: 使用IE8进行调试,发现以下问题:
The div tag in td is overflowing the td's Boundary. td中的div标签溢出了td的边界。
What reason? 什么理由? Please help.
请帮忙。
http://www.w3schools.com/cssref/css3_pr_box-sizing.asp http://www.w3schools.com/cssref/css3_pr_box-sizing.asp
set box-sizing: content-box
on the td
containing the div
设置
box-sizing: content-box
包含div
的td
上的box-sizing: content-box
IE8 defaults to border-box
, all newer versions and all other browsers default to content-box
IE8默认为
border-box
,所有较新版本,所有其他浏览器默认为content-box
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.