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

黄舟
Release: 2017-06-29 13:54:14
Original
4474 people have browsed it

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>
Copy after login

My code is as follows:

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

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%;}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!