六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 118|回复: 0

浏览器兼容比较好的设置min-width的方式

[复制链接]

升级  2.2%

157

主题

157

主题

157

主题

进士

Rank: 4

积分
511
 楼主| 发表于 2013-2-7 20:01:42 | 显示全部楼层 |阅读模式
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>测试主页面</title><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"><meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"><meta http-equiv="Content-Type" content="text/html; charset=gbk" /><style>/* for all browsers that understand min-width */.container {position:relative; width:90%; min-width:800px;}.holder {display:block; color:#000;} /* method 1 a bodge for IE5.5 and IE6 browsers */* html .container {border-right:800px solid #fff;}* html .holder {display:inline-block; position:relative; margin-right:-800px;}</style></head><body><div class="container"> <div class="holder"> <h2>test here abc def test here abc def test here abc def test here abc def test here abc def test here abc def test here abc def </h2> </div> </div> </body></html> 
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表