dreamweaver div 包围结构 错位
1个回答
展开全部
<!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>
<style type="text/css">
#m{ width:500px; height:300px; background-color:#993300;}
#left{ margin-top:0px;width:20px; height:300px; float:left; background-color:#0066CC;}
#right{margin-top:0px; width:20px; height:300px; float:right;background-color:#0066CC;}
#mid{ margin-top:0px;width:460px; height:100px; background-color:#33FF99; float:left;}
#bottom{ width:460px; height:200px; background-color:#FF0066; float:left;}
</style>
<body>
<div id="m">
<div id="left"></div>粗拿
<div id="mid">此处显示 id "mid" 的内春塌容岩森搭</div>
<div id="right"></div>
<div id="bottom">此处显示 id "bottom" 的内容</div>
</div>
</body>
</html>
如果好用记得给我分 谢谢
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<style type="text/css">
#m{ width:500px; height:300px; background-color:#993300;}
#left{ margin-top:0px;width:20px; height:300px; float:left; background-color:#0066CC;}
#right{margin-top:0px; width:20px; height:300px; float:right;background-color:#0066CC;}
#mid{ margin-top:0px;width:460px; height:100px; background-color:#33FF99; float:left;}
#bottom{ width:460px; height:200px; background-color:#FF0066; float:left;}
</style>
<body>
<div id="m">
<div id="left"></div>粗拿
<div id="mid">此处显示 id "mid" 的内春塌容岩森搭</div>
<div id="right"></div>
<div id="bottom">此处显示 id "bottom" 的内容</div>
</div>
</body>
</html>
如果好用记得给我分 谢谢
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询