<分区>
标签 css
<分区>
我有一个列表,我希望它看起来像这样:
» Hello here is a line that
breaks
» Hello here is a line that
breaks
» Hello here is a line that
breaks
我使用 :before 添加双箭头:
li{
width: 80px;
}
li:before {
content: "\0273";
}
这会产生一个如下所示的列表:
» Hello here is a line that
breaks
» Hello here is a line that
breaks
» Hello here is a line that
breaks
我怎样才能缩进第二行呢?我不想使用图像。
最佳答案
尝试这样的事情:
ul {
list-style: none;
margin-left: 0;
padding-left: 0;
}
li {
padding-left: 16px;
text-indent: -14px;
width: 100px;
}
li:before {
content: "+";
padding-right: 5px;
}
关于css - 如何制作缩进列表并使用双箭头作为我的角色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33164204/