css 定制彩色子弹

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 定制彩色子弹相关的知识,希望对你有一定的参考价值。

/* First supress the list style */
ul { list-style: none; }

/*  Then generate your own bullets */
li::before { content: "•"; color: red }

/* The above code inserts a red bullet, but placement needs to be adjusted One way to do that is to make our bullet into an 'inline-block' of a given size, say 1em, and then move it to the left by its own size:  */
li::before {
  content: "•"; color: red;
  display: inline-block; width: 1em;
  margin-left: -1em;
}

/*  B.t.w., if you have trouble typing those bullets into your style sheets, you can also use their Unicode numbers: • = "\2022", ◦ = \25E6" and ▪ = "\25AA" */

以上是关于css 定制彩色子弹的主要内容,如果未能解决你的问题,请参考以下文章

jQuery cycle2 寻呼机不工作

css 好的css子弹

CSS 使用CSS背景图像的子弹

css 传呼机子弹着色

css 子弹列表布局

css 子弹类型