+ -
当前位置:首页 → 问答吧 → 怎么样使div 与浏览器页面顶部和左右紧贴,无空隙?

怎么样使div 与浏览器页面顶部和左右紧贴,无空隙?

时间:2011-08-22

来源:互联网

问题同上。大神们求解啊!!

作者: xiaofei1ove   发布时间: 2011-08-22

HTML code
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
*{margin:0; padding:0;}
</style>
</head>
<body>
    <div style="background:#000; width:100%; height:100px;"></div>
</body>
</html>

作者: MuBeiBei   发布时间: 2011-08-22

热门下载

更多