search

Home  >  Q&A  >  body text

li 前面的默认空格怎么去掉?

<style type="text/css">
        ul {
            margin: 0 auto;
            width: 300px;
            height: 200px;
            background-color: #FFFF00;
            /*text-align: center;*/
        }
        
        li {
            display: inline;
            list-style: none;
            background-color: bisque;
            padding: 0px;
            margin: 0px;
        }
    </style>

    <body>
            <ul>
                <li>前面的空格?</li>
            </ul>
    </body>

2398049204-57fb93b258465_articlex.png

大家讲道理大家讲道理2942 days ago933

reply all(2)I'll reply

  • 代言

    代言2016-11-12 13:55:00


    reply
    0
  • 代言

    代言2016-11-12 13:54:25

    ul padding

    reply
    0
  • Cancelreply