经典论坛 » WEB标准化专栏 » IE中发现新BUG "重影"
新手上路
<!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 type="text/css"> #top4 { width: 75px; height: 75px; margin-top: 5px; padding: 0px; float: left; text-align: center; background-image: url(../images/index/top4.gif); background-repeat: no-repeat } #mainmenu { width: 770px; height: 30px; float: right!important; font-size: 12px; padding-top: 6px!important;/* 修正IE的CSS盒模型BUG */ padding-top: 4px; background-image: url(../images/index/mainmenu.gif); } </style> </head> <body> <!-- 页面内容开始 --> <div> <div id="top4">05-1-31<br />星期一<br />10:28</div> <!-- 页面顶部网站主菜单部分 --> <div id="mainmenu">主页 | 新闻 | 云南 | 地产 | 法律 | 报刊 | 娱乐 | 文化 | 教育 | 健康 | 旅游 | 时尚 | IT | 汽车 | 各地 | 专题 | 短信 | 邮件</div> </div> </body> </html>
查看个人网站
查看详细资料
TOP
CK同伈鎖
荣誉管理团队
专长 AS,策划,项目管理
初级会员
专长 前端制作,AS,网络
中级会员
我知道是什么 问题<!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 type="text/css"> #div1 { width: 770px; } #top4 { width: 75px; height: 75px; margin-top: 5px; padding: 0px; float: left; text-align: center; background-image: url(../images/index/top4.gif); background-repeat: no-repeat } #mainmenu { width: 770px; height: 30px; float: right!important; font-size: 12px; padding-top: 6px!important;/* 修正IE的CSS盒模型BUG */ padding-top: 4px; background-image: url(../images/index/mainmenu.gif); } </style> </head> <body> <!-- 页面内容开始 --> <div id="div1"> <div id="top4">05-1-31<br />星期一<br />10:28</div> <!-- 页面顶部网站主菜单部分 --> <div id="mainmenu">主页 | 新闻 | 云南 | 地产 | 法律 | 报刊 | 娱乐 | 文化 | 教育 | 健康 | 旅游 | 时尚 | IT | 汽车 | 各地 | 专题 | 短信 | 邮件</div> </div> </body> </html> 提示:您可以先修改部分代码再运行
辛豆瑞拉
专长 UI,前端制作,UE
银牌会员
高级会员
专长 网页设计,JS,C#
地狱之歌
专长 前端制作,产品设计
我来放一个清爽整理版<!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> </head> <body> <div style="width:400px"> <div style="float:left"></div> <!-- --> <div style="float:right;width:400px">↓这就是多出来的那只猪</div> </div> </body> </html> 提示:您可以先修改部分代码再运行
专长 网页设计,UI
babysize
怿飞
专长 前端制作,JS,WAP
残缺
专长 前端制作,产品设计,网站运营
外号牛13