gpt4 book ai didi

html - 无法使用 HTML/CSS 更改边距

转载 作者:行者123 更新时间:2023-11-28 04:06:18 25 4
gpt4 key购买 nike

在这里,左边距/右边距什么都不做。这与宽度有关吗?将是一个左右两栏的网页,还需要在中间加一行。

.wrap {
width: 100%;
overflow: scroll;
}

.fleft {
float:left;
width: 50%;
background:white;
height: 1000px;
margin-left: 6cm;
}

.fright {
float: right;
background:white;
height: 1000px;
width: 50%;
margin-right: 6cm;
}

也行不通

.wrap {
width: 100%;
overflow: auto
margin: 0 0 10px 10px;
}

.fleft {
float:left;
width: 50%;
background:white;
height: 1000px;


}

.fright {
float: right;
background:white;
height: 1000px;
width: 50%;

}

最佳答案

删除边距的数字和属性值之间的空格。例如:

margin-left: 6cm;

Otherwise it would be invalid property value

关于html - 无法使用 HTML/CSS 更改边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42942578/

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