gpt4 book ai didi

html - css/html - 删除 li 标签前的空格

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

我想删除 li 标签前的空格(标记为黄色),但我不知道如何。

我阅读了有关此问题的其他问题,但对我没有帮助,我尝试添加 margin:0px

这是描述问题的屏幕截图:

enter image description here

<html dir="rtl">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<style type="text/css">

*
{
font-size:13pt;
font-family:Arial;
}

hr {
border:1px; Border-Style: solid; border-color: D8D8D8;
}

.menu ol,ul{list-style:none; }
.menu ul li{ display:block; }

.menu{
}
.menu a{
background:#f9f9f9;
border-bottom:1px solid #eee;
display:block;
padding:13px;
color:#767676;
font-size:12px;
}
.menu a:hover{
background:#fff;
}
header .menu{
border-top:1px solid #eee;
}
header .menu a{
padding:15px 15px 15px 25px;
}
header .menu li:last-child a{
border-bottom:none;
}


a:link, a:visited, a:active {color: #033254 }
a:hover{color:E19E21} a{text-decoration:none}
</style>
<body bgcolor='#FDFDF7' leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">


<ul class="menu">


<li><a href="eeee">aaaaaa</a></li>
<li><a href="eeee">aaaaaa</a></li>
<li><a href="eeee">aaaaaa</a></li>
<li><a href="eeee">aaaaaa</a></li>

</ul>

最佳答案

在你的 ul 上设置 padding-right: 0;

.menu {
padding-right: 0;
}

关于html - css/html - 删除 li 标签前的空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45174212/

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