布局的问题,求助
时间:2011-04-03
来源:互联网
左右布局,
页面宽度自动伸展的情况下;
右侧 采用 绝对定位,固定宽度
左侧采用margin-right:右侧宽度
在左侧框架内 循环float浮动的DIV时,浮动到一定数量时,ie6 7好像好像不能自动换行;
请各位高手帮忙解答一下,谢谢!
页面宽度自动伸展的情况下;
右侧 采用 绝对定位,固定宽度
左侧采用margin-right:右侧宽度
在左侧框架内 循环float浮动的DIV时,浮动到一定数量时,ie6 7好像好像不能自动换行;
请各位高手帮忙解答一下,谢谢!
<!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=gb2312" /> <title>无标题文档</title> <style> #page { width:auto;} #page #content{ position:relative; width:auto;padding:18px 12px; border-top:1px dashed #555; } #page #content #minor{position:absolute; right:12px; top:18px; width:250px; height:300px; background:#eee;} #page #content #main{margin-right:380px;} .float{ float:left; width:100px; margin-right:12px;} </style> </head> <body> <div id="page"> <div id="content"> <div id="minor"></div> <div id="main"> <div class="float">浮动浮动浮动</div> <div class="float">浮动浮动浮动</div> <div class="float">浮动浮动浮动</div> <div class="float">浮动浮动浮动</div> <div class="float">浮动浮动浮动</div> <div class="float">浮动浮动浮动</div> <div class="float">浮动浮动浮动</div> <div class="float">浮动浮动浮动</div> <div class="float">浮动浮动浮动</div> </div> </div> </div> </body> </html>
提示:您可以先修改部分代码再运行
提示:您可以先修改部分代码再运行
作者: wmoo 发布时间: 2011-04-03
补充一下,<div class="float">浮动浮动浮动</div>还是会自动换行,但是左侧的宽度已经设置边距了(margin-right:380px),浮动在显示的时候好像这个参数没有起作用!
请大家帮忙检查一下什么问题!
[ 本帖最后由 wmoo 于 2011-4-3 23:24 编辑 ]
请大家帮忙检查一下什么问题!
[ 本帖最后由 wmoo 于 2011-4-3 23:24 编辑 ]
作者: wmoo 发布时间: 2011-04-03
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28