如何保证页面的正文(html)? [英] How to margin the body of the page (html)?
本文介绍了如何保证页面的正文(html)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用了以下内容:
I used the following
<body topmargin="0" leftmargin="0" rightmargin="0">
只适用于IE6。我希望它能与firefox和opera一起工作。
which works only on IE6. I want it to work with firefox and opera.
我尝试了以下操作:
I attempted the following:
<style type="text/css">
.header {
width: 100%;
background-color: #3B5998;
height: 35px;
margin-top:0;
}
.style1 {
margin-right: 38px;
}
.style2 {
width: 100%;
background-color: #3B5998;
height: 35px;
}
</style>
<div dir="rtl" class="style2" style="width: 100%">
<p align="center"style="width: 92px; height: 32px; font-family: Arial, Helvetica, sans-serif; font-size: 20px; color: #EFF1F6;" class="style1"></p>
</div>
</body>
推荐答案
开始您可以使用:
<body style="margin:0;padding:0">
一旦你学习了一点关于css的知识,你可以改变它:
Once you study a bit about css, you can change it to:
body {margin:0;padding:0}
在您的样式表中。
这篇关于如何保证页面的正文(html)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文