加粗的宽度正好等于父级,但是在qq浏览器里现实的时候有重叠

<!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">

body{background:#00FFFF;font-size:30px;color:#000000;margin:0;padding:0}/*将整体的标签设置背景颜色,字体大小,字体颜色,外边距0,内边距0*/

.top{width:100%;height:40px;margin:0;padding:0;background:#00CC66;text-align:center;}

.main{width:90%;background:#993333;margin:0;padding:0;position:

absolute;left:5%

top:40px;margin:0 auto;}

.left{width:20%;height:800px;background:#0066FF;position:absolute;left:0;top:0px;margin:0 ;padding:15px}

.right1{width:50%;height:800px;background:#0066FF;margin:0 0 0 20%;padding:15px}

.right2{width:30%;height:800px;background:#0066FF;position:absolute;right:0;top:0px;margin:0 ;padding:15px}

.foot{clear:both;width:100%;height:60px;background:#9966CC;text-align:center}

</style>

</head>


<body>

<div class="top">top:本宝宝很六,就问你6不6

</div>

<div class="main">

<div class="left">left, </div>

<div class="right1">right1,

</div>

<div class="right2">

<a>right2,

</a>

</div>

<div class="foot">foot,

</div>

</div>    

</body>

</html>


青椒rose_0
浏览 1300回答 2
2回答

荼酒

没明白
打开App,查看更多内容
随时随地看视频慕课网APP