+ -
当前位置:首页 → 问答吧 → IE6用户正在用实际行动抗议浏览器的升级

IE6用户正在用实际行动抗议浏览器的升级

时间:2011-09-16

来源:互联网

下面代码中,ul.list_1 { clear: both; width:auto}  /** width 没有准确数值的时候,IE6会出现问题 **/

这是什么BUG啊,该不该给自适应呢
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>IE6 什么bug???</title> <style> ul.list_1 { clear: both; width:auto}/** width 没有准确数值的时候,IE6会出现问题 **/ ul.list_1 li { float:left; width:130px; } .huaidan { border:1px solid #c6c4c4; background-color:#FFFFFF; height:150px; width:100%} .box03 { padding:20px 10px ; background:#f2f2f2}h1.release_3 { clear:both;} </style> </head> <body> <div class="box03"> <h1 class="release_3">IE6看不到我怎么办?IE6看不到我怎么办?IE6看不到我怎么办?IE6看不到我怎么办?</h1> <ul class="list_1"> <li>text</li> <li>text</li> </ul> <div class="huaidan"></div> </div> </body> </html>
 提示:您可以先修改部分代码再运行

作者: 1xingren   发布时间: 2011-09-16


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>IE6 什么bug???</title> <style> ul.list_1 { clear: both; width:auto}/** width 没有准确数值的时候,IE6会出现问题 **/ ul.list_1 li { float:left; width:130px; } .huaidan { border:1px solid #c6c4c4; background-color:#FFFFFF; height:150px; width:100%} .box03 { padding:20px 10px ; background:#f2f2f2;} h1.release_3 { clear:both; width:100%} </style> </head> <body> <div class="box03"> <h1 class="release_3">IE6看不到我怎么办?IE6看不到我怎么办?IE6看不到我怎么办?IE6看不到我怎么办?</h1> <ul class="list_1"> <li>text</li> <li>text</li> </ul> <div class="huaidan"></div> </div> </body> </html>
 提示:您可以先修改部分代码再运行

作者: guangxu1202   发布时间: 2011-09-16