Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何更改li bullet的css? 这是一个测试 .子弹样式{ 颜色:红色; }_Html_Css - Fatal编程技术网

Html 如何更改li bullet的css? 这是一个测试 .子弹样式{ 颜色:红色; }

Html 如何更改li bullet的css? 这是一个测试 .子弹样式{ 颜色:红色; },html,css,Html,Css,但这并没有反映出这一点。那么,我怎样才能改变li项目符号的颜色呢?我不知道你为什么需要这个,但要回答你的问题:给列表项本身一个span,给span一个不同于span的颜色 示例:使用列表样式图像,并使用红方块作为图像 type不是li元素的有效属性。仅适用于输入(afaik)。 <li class="bullet-style" type="square">This is a test</li> .bullet-style { color:red; }

但这并没有反映出这一点。那么,我怎样才能改变li项目符号的颜色呢?我不知道你为什么需要这个,但要回答你的问题:给列表项本身一个span,给span一个不同于span的颜色


示例:

使用列表样式图像,并使用红方块作为图像


type
不是
li
元素的有效属性。仅适用于
输入
(afaik)。
<li class="bullet-style" type="square">This is a test</li>

.bullet-style {
   color:red;
}