详细内容
样式表里使用脚本
发布日期:2010-11-01     点击:3565     字体:[ ]

#rwarp{
 width:100%;
 height:100%;
 min-width:1000px;
 min-height:750px;
 _width: expression(document.documentElement.clientWidth < 998 ? '1000px' : '');
 _height: expression(document.documentElement.clientHeight < 768 ? '770px' : '');
}

这里_width: expression(document.documentElement.clientWidth < 998 ? '1000px' : '');
即利用脚本设置浏览器宽度。

用户评论
昵称 
内容  *
验证码   
   
Copyright © 2010 zdbase.com All Rights Reserved. 苏ICP备15039389号 可人软件设计