css/html-在li标签之前删除空格 [英] css / html - remove space before li tag
本文介绍了css/html-在li标签之前删除空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除li标签前的空格(标记为黄色),我不知道如何.
I want to remove the space (marked as yellow) before the li tag and i don't know how.
我阅读了有关此问题的其他问题,但对我没有帮助,我尝试添加margin:0px
I read other questions about this issue but it doesn't help me, I tried to add margin:0px
这是描述问题的屏幕截图:
this is a screenshot that describes the problem:
<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
.menu {
padding-right: 0;
}
这篇关于css/html-在li标签之前删除空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文