如何在HTML中的项目符号点之前添加空间 [英] How to add space before bullet points in HTML

查看:200
本文介绍了如何在HTML中的项目符号点之前添加空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在要点之前添加空格.我的要求是

I want to add space before bullet points . My requirement like

这是第1段

  • 文本行
    • 第二行文本

    这是第2段

    • 文本行
      • 第二行文本

      任何帮助将不胜感激.

      推荐答案

      默认情况下,项目符号点前有 个空格.如果没有,您可能正在使用某种重置CSS".

      There is spacing before bullet points by default. If there isn’t, you are probably using a "Reset CSS" of some kind.

      要将间距设置为所需值,请将ulli元素的padding-leftmargin-left都设置为零,然后将其中之一设置为所需值.

      To set the spacing to a desired value, set padding-left and margin-left of both ul and li elements to zero and then set one of them to the desired value.

      这篇关于如何在HTML中的项目符号点之前添加空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆