为什么我的代码将在所有IE版本中运行,但在IE7上却不行?

时间:2014-06-09 09:30:52

标签: html css internet-explorer-7

正如标题所说。我真的无法弄清楚这有什么问题。 如果#main div的内容与其宽度重叠,则<html> <head> <style> #header, #main, #sidebar, #footer { display:inline; position:relative; float:left; background-color:#eee; } #header, #footer { width:100%; height:60px; } #header { margin-bottom:2%; } #footer { margin-top:2%; } #main { width:68%; height:50%; margin-right:2%; } #sidebar { width:30%; height:50%; } </style> </head> <body> <div id="header">Header </div> <div id="main"> content goes here.</div> <div id="sidebar">Sidebar</div> </body> </html> div会失效。

这是包含css样式的html文件:

{{1}}

在IETester软件上尝试了所有版本,但IE7。它不会加载任何东西。提前谢谢。

0 个答案:

没有答案