开发者

css bullet in firefox

<ul>
   <li> test &开发者_JS百科lt;/li>

</ul>

by default when view on firefox, the test is shifted to the right hand side? how to made it align to the left ?


The text is shifted to the right a bit, because there are bullets to the left.

If you would like to remove the bullets, the simplest method is to add:

ul.nobullet, ul.nobullet li
{
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: left;
}

and then just do

<ul class="nobullet"> <!-- etc -->


Use css text-align attribure with value left. I think that default Firefox is shift text to the left, but look like you change the text-align css attribute somewhere that make it align to the right

<ul>
     <li>a</li>
     <li>aaaa aaaaa dddddd</li>
</ul>
<style>
   ul li
    {
        text-align: right;
    }
</style>


Change the padding-left style.

<ul style="padding-left:0;">
   <li> test </li>

</ul>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜