css 怎么实现在不同的浏览器下背景颜色都能全屏
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/...
<!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=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>index</title>
<style type="text/css">
<!--
body{margin:0px; padding:0px;}
.weapper1{width:100%;height:100%; background-color:#231a15; }
.wenzi1{width:600px; height:200px; color:#019fe8; line-height:25px; margin-left:107px}
-->
</style>
</head>
<body>
<div class="weapper1">
<div class="wenzi1">
我要的类容
</div>
</div>
</body>
</html>
--------------------------------------------------------------
如上代码,背景颜色并不能全屏显示。请大家帮忙看看 展开
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>index</title>
<style type="text/css">
<!--
body{margin:0px; padding:0px;}
.weapper1{width:100%;height:100%; background-color:#231a15; }
.wenzi1{width:600px; height:200px; color:#019fe8; line-height:25px; margin-left:107px}
-->
</style>
</head>
<body>
<div class="weapper1">
<div class="wenzi1">
我要的类容
</div>
</div>
</body>
</html>
--------------------------------------------------------------
如上代码,背景颜色并不能全屏显示。请大家帮忙看看 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询