网页设计浏览器兼容性的问题,求解决方法!!!
兄弟。
最简单的一个。在body与body之间加一个center标签。
然后,请仔细学习一下css的排版吧。网页居中,是最基础的东西了。
常规做法如下:
<style type=”text/css”>
body { background-color: #eee; text-align: center; }/*页面居中*/
#wrap { margin: 0 auto; width: 960px; background-color: #fff; text-align: left; }/*让文字默认左对齐*/
</style...全部
兄弟。
最简单的一个。在body与body之间加一个center标签。
然后,请仔细学习一下css的排版吧。网页居中,是最基础的东西了。
常规做法如下:
<style type=”text/css”>
body { background-color: #eee; text-align: center; }/*页面居中*/
#wrap { margin: 0 auto; width: 960px; background-color: #fff; text-align: left; }/*让文字默认左对齐*/
</style>
<html>
<head>
<title></title>
</head>
<body>
<div id="wrap">
<p>内容区</p>
<p>内容区</p>
<p>内容区</p>
<p>内容区</p>
<p>内容区</p>
<p>内容区</p>
</div>
</body>
</html>。收起