【发布时间】:2023-03-09 00:48:01
【问题描述】:
我已经在三天内尝试了自己,但无法修复它。请帮我。非常感谢。
- 红色:现在是我的代码。
- 蓝色:我想改变结果。
我只是在家里尝试从零开始学习,但我喜欢它并且不会放弃,如果可以的话请教我。谢谢。
所以,这是我的代码。
#container {
width: 100%;
margin: 0 auto;
overflow: hidden;
position: relative;
}
#sidebar-left, #sidebar-right {
width: 20%px;
float: left;
margin-right: auto;
margin-left: auto;
}
#navbar-center {
width: 56%;
height: 40px;
float: left;
margin-left: 40px;
display: block;
}
#sidebar-left ul, #sidebar-right ul, #navbar-center ul {
list-style-type: none;
text-align: auto;
}
#sidebar-left li, #sidebar-right li, #navbar-center li {
display: block;
color: #666;
width: 100px;
height: 40px;
line-height: 40px;
}
#sidebar-left a:hover, #sidebar-right a:hover, #navbar-center a:hover {
color: #FFF;
background-color: #666;
}
.wrap-title {
font-size: 18px;
font-weight: 800;
line-height: 25px;
overflow: hidden;
height: 24px;
padding-bottom: 4px;
border-bottom: 2px solid #666;
}
【问题讨论】:
标签: html css multiple-columns