gpt4 book ai didi

html5 中的 css 部分和旁白问题

转载 作者:行者123 更新时间:2023-11-28 09:36:32 24 4
gpt4 key购买 nike

这是我的CSS代码:

* {
box-sizing:border-box;
}

body {
font-family:Raleway, sans-serif;
text-decoration:none;
line-height:1.42857143;
margin:0;
}

html {
position:relative;
min-height:100%;
}

.wrapper {
width:960px;
margin-left:auto;
margin-right:auto;
}

JSfiddle:

http://jsfiddle.net/yb2sLhox/

我需要像页眉、内容和页脚一样的页边距。左右边距应该是相同的空间..像这样http://postimg.org/image/ojhkt7bg3/a099ed23/

调整窗口大小时工作正常。我认为在内容部分需要改变它。

谁能帮帮我?

最佳答案

您可以尝试将 padding 添加到您的 section

section{
padding: 0px 30px;
}

尝试像这样向您的部分添加一些宽度

section{
width:90%;
margin:auto;
}

DEMO

关于html5 中的 css 部分和旁白问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25505282/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com