Home  >  Article  >  Web Front-end  >  How to control the size and color of list-style-type:square in CSS?

How to control the size and color of list-style-type:square in CSS?

黄舟
黄舟Original
2017-06-29 13:54:144474browse

Excuse me, experts:
When I use DIV, I use a small box to display in front of the title. Experts, how can I control the color and size of this small box?
My code is as follows:

<li style="list-style-position:inside; list-style-type:square;">标题前的图标颜色、大小的控制问题</li>

My code is as follows:

HTML code<li style="list-style-position:inside; list-style-type:square;">标题前的图标颜色、大小的控制问题</li>

Do you understand the list-style attribute? ? ?
Hey, I suggest you check the information to find out more

The size cannot be set, but it will change with the scaling of the page or font.

Also, which page of Sina did you say it was?

.list_009 li{padding-left:1em;background:url(http://i1.sinaimg.cn/dy/deco/2007/1211/yocc/unfcn_mj_01.gif) no-repeat 5px 50%;}

This is defined by Sina

The above is the detailed content of How to control the size and color of list-style-type:square in CSS?. For more information, please follow other related articles on the PHP Chinese website!

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