Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.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/34.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_Google Chrome - Fatal编程技术网

Html 为什么滚动条消失了?

Html 为什么滚动条消失了?,html,css,google-chrome,Html,Css,Google Chrome,我的滚动条在应用任何CSS后都会在Chrome中消失 如果这与我的问题有什么关系,我也会在这个项目中使用React 我的CSS: ::-webkit-scrollbar { width: 12px; } 它并没有消失,只是覆盖了您必须手动添加的其他样式 ::-webkit滚动条{ 宽度:12px; 背景色:#aaa; } :-webkit滚动条拇指{ 背景:#000; } 身体{ 高度:5000px; }

我的滚动条在应用任何CSS后都会在Chrome中消失

如果这与我的问题有什么关系,我也会在这个项目中使用React

我的CSS:

::-webkit-scrollbar {
    width: 12px;
}

它并没有消失,只是覆盖了您必须手动添加的其他样式

::-webkit滚动条{
宽度:12px;
背景色:#aaa;
}
:-webkit滚动条拇指{
背景:#000;
}
身体{
高度:5000px;
}