Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.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 <;仪表>;在铬合金中不能正常工作_Html_Css - Fatal编程技术网

Html <;仪表>;在铬合金中不能正常工作

Html <;仪表>;在铬合金中不能正常工作,html,css,Html,Css,我下面创建密码强度表。这在Firefox中运行良好,但在Chrome浏览器中不会切换颜色。我也试过了,但在Chrome浏览器中似乎也不起作用。以下是meter元素的CSS样式: meter { /* Reset the default appearance */ -webkit-appearance: none; -moz-appearance: none; appearance: none; margin: 0 auto 1em;

我下面创建密码强度表。这在Firefox中运行良好,但在Chrome浏览器中不会切换颜色。我也试过了,但在Chrome浏览器中似乎也不起作用。以下是meter元素的CSS样式:

meter {
    /* Reset the default appearance */
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;

    margin: 0 auto 1em;
    width: 100%;
    height: .5em;

    /* Applicable only to Firefox */
    background: none;
    background-color: rgba(0,0,0,0.1);
}

meter::-webkit-meter-bar {
    background: none;
    background-color: rgba(0,0,0,0.1);
}

meter[value="1"]::-webkit-meter-optimum-value { background: red; }
meter[value="2"]::-webkit-meter-optimum-value { background: yellow; }
meter[value="3"]::-webkit-meter-optimum-value { background: orange; }
meter[value="4"]::-webkit-meter-optimum-value { background: green; }

meter[value="1"]::-moz-meter-bar { background: red; }
meter[value="2"]::-moz-meter-bar { background: yellow; }
meter[value="3"]::-moz-meter-bar { background: orange; }
meter[value="4"]::-moz-meter-bar { background: green; }

请建议导致这种行为的Chrome中可能发生的变化?我试着寻找供应商prifixes中的任何更改,但找不到任何更改。

Chrome版本52中存在一个bug,导致出现
-webkit外观:无以清除彩色条本身

从仪表中删除
-webkit外观
属性会导致彩色条显示。请参见下面的小提琴示例:

编辑
上面的问题链接显示问题已修复。然而,它已在此处重新打开:

Chrome 52版中存在一个bug,导致
-webkit外观:无以清除彩色条本身

从仪表中删除
-webkit外观
属性会导致彩色条显示。请参见下面的小提琴示例:

编辑
上面的问题链接显示问题已修复。然而,它已经在这里重新打开:

它实际上完美地为我展示了。
更新您的浏览器,如果您是最新的,请清除您的缓存,它实际上完美地为我显示。
更新浏览器,如果您是最新的,请清除缓存

谢谢。我使用的是Chrome52,它似乎得到了支持。我也浏览了HTML5的医生页面,但没有用。opera 39-相同effect@AndreyFedorov如果你知道的话,你能指出一个解决方案吗?是的,我没有理想的银行。我使用的是Chrome52,它似乎得到了支持。我也浏览了HTML5的医生页面,但没有用。opera 39-相同effect@AndreyFedorov如果你知道的话,你能指出一个解决方案吗?sry,我没有主意