gpt4 book ai didi

html - 摆脱CSS中的不可见空间

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

如何让菜单列表完全靠左?

css:
body {background: #111111;}

#wrapper {width:980px; margin:0 auto;}
#pageTop {width:100%; margin:0 auto; position:relative; text-align:center;}
#pageTop h1 a {font-size:45px; font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif; text-decoration:none; color:white;}
#mainNav {float:center; background:#1e1e1e; height:50px; width:100%; margin-top:-16px; position:relative; border-bottom-left-radius:5px; border-bottom-right-radius:5px;}
#menueList li { display:inline-block; margin: 0; list-style:none; padding: 15px; width: fit-content; float:left;}
#menueList li a {font-family: 'Josefin Sans', sans-serif; font: 15px;text-decoration:none; color:white;}
#menueList a:hover{color:#1e1e1e; background:white; padding:15px;}
#content {width:940px; margin:30px auto; background:#1e1e1e; padding:20px; position:relative; float:center; border-radius:5px; font-size:16px; font-family: 'Josefin Sans', sans-serif; text-decoration:none; color:white; }

最佳答案

将此添加到您的 CSS 中

#menueList { display: initial; }

关于html - 摆脱CSS中的不可见空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34959278/

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