tag, the left spacing of the text is much larger""/> tag, the left spacing of the text is much larger"">

Home  >  Article  >  Web Front-end  >  Novice asking for help 'After adding the

  • tag, the left spacing of the text is much larger'_html/css_WEB-ITnose

  • Novice asking for help 'After adding the
  • tag, the left spacing of the text is much larger'_html/css_WEB-ITnose
  • WBOY
    WBOYOriginal
    2016-06-24 12:08:421676browse

    td {
    padding:15px 20px 15px 0px;

    }
    ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    b6c5a531a458a2e790c1fd6421739d1c
      ff6d136ddc5fdfeffaf53ff6ee95f185
                                                               li> li>Receive holiday giftsbed06894275b65c1ab86501b08a632eb
                                                                                                                  Will the gap be much larger? Does this have any tune?




    Reply to discussion (solution)

    Do ul and li have default values?
    Add

    Add li and ul to the css definition

    ul, li{padding:0; margin:0;}

    *{margin:0;padding:0;}
    Maybe add a

    list-style :none;

    Try...?

    ul,li{

    margin-left:0px;

    padding-left:0px;
      }

    Add a style to li ul

    ul li{ list-type:none; margin:0; padding:0;}

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn