加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

如何保证页面的正文(html)?

发布时间:2020-12-14 18:58:18 所属栏目:资源 来源:网络整理
导读:我使用以下 body topmargin="0" leftmargin="0" rightmargin="0" 它只适用于IE6.我想要使??用Firefox和Opera. 我尝试了以下内容: style type="text/css".header { width: 100%; background-color: #3B5998; height: 35px; margin-top:0;}.style1 { margin-r
我使用以下
<body topmargin="0" leftmargin="0" rightmargin="0">

它只适用于IE6.我想要使??用Firefox和Opera.

我尝试了以下内容:

<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的内容,您可以将其更改为:

body {margin:0;padding:0}

在你的样式表.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读