如何在css中增加<li>项目符号的字体大小?

时间:2015-07-10 09:38:35

标签: css html5

                    

  •                         一个                     
  •                     
  •                        乙                     
  •                     
  •                         C                     
  •                     
  •                        d                     
  •                     
  • E
  •                 

    如何在不影响文字的情况下增加项目符号?

    1 个答案:

    答案 0 :(得分:-1)

    您可以使用span标记包装li的内容:

    li {
      font-size: 70px;
    }
    .li-content {
      font-size: 16px;
    }
    <ul>
      <li><span class="li-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</span</li>
    </ul>