关于CSS<li>下划线问题 急求

html-css06

关于CSS<li>下划线问题 急求,第1张

li前面的点用图片代替的话,虚线就可以往前移

<style>

    ul{padding:0}

    li {list-style:none 

    background:url('图片地址') scroll 0 10px no-repeat transparent 

    border-bottom:1px dashed #cccccc

    padding:0 0 10px 10px 

    margin-top:10px}

</style>

<ul>

    <li>asdgasdf</li>

    <li>lejtqtoi</li>

    <li>etrqetqwer</li>

</ul>

标签修饰的内容将被加横线。

标签修饰的内容将被加横线。同时如果使用htmlli对文字内容横线样式,而不想显示下划线,但可以使用CSS样式设置去掉u标签下划线样式。

横线的符号是破折号。破折号是表示话题或语气的转变,声音的延续等的符号。

<div style="overflow:hiddenwidth:100px">

改成<div style="overflow:hiddenwidth:1000px">就好了

你就设置100PX宽他当然浮动不上去。而且你还设置了多余部分隐藏