<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <link href="css/main.css" rel="stylesheet" type="text/css"/> <script src="js/setHomeSetFav.js" type="text/javascript" charset="gb2312"></script> <script src="js/myfocus-2.0.1.min.js" type="text/javascript"></script> <script src="js/mf-pattern/mF_fancy.js" type="text/javascript"></script> <link href="js/mf-pattern/mF_fancy.css" rel="stylesheet" type="text/css"/> <script type="text/javascript"> myFocus.set({ id:'box', }) </script> </head> <body> <div class="wrap"> <div class="ad" id="box"> <div class="loading"><img src="images/loading.gif" alt="图片加载中"/></div> <div class="pic"> <ul> <li><img src="images/ad2.jpg"/></li> <li><img src="images/ad3.jpg"/></li> <li><img src="images/ad4.jpg"/></li> </ul> </div> </div><!--ad结束--> </div> </body> </html>
.ad{ height:310px; overflow:hidden; } .wrap{ width:1000px; margin:0 auto; }
HTML5就显示一半,转换成HTML4就好了。。为什么。。。怎么在HTML5的时候也可以显示