简体   繁体   中英

CSS compatibility issues with IE8

I'm using table to show some data,but has the following BUG with IE8:

The right of the text is hidden.

I have set the following properties:

  1. table-layout:fixed; (Do not want to modify this.)
  2. td {padding: 3px;}

Debugged with IE8,Found the following problem:

The div tag in td is overflowing the td's Boundary.

What reason? Please help.

http://www.w3schools.com/cssref/css3_pr_box-sizing.asp

set box-sizing: content-box on the td containing the div

IE8 defaults to border-box , all newer versions and all other browsers default to content-box

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM