Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.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 CSS将鼠标悬停在按钮上时更改跨距的颜色_Html_Css - Fatal编程技术网

Html CSS将鼠标悬停在按钮上时更改跨距的颜色

Html CSS将鼠标悬停在按钮上时更改跨距的颜色,html,css,Html,Css,当我将鼠标悬停在按钮上时,如何选择html中的跨距使其中的文本变为白色 <button type="button" class="multiselect dropdown-toggle none" data-toggle="dropdown" title="Auckland" style="width: 100%; overflow: hidden; text-overflow: ellipsis;"> <span class="multiselect-selected

当我将鼠标悬停在按钮上时,如何选择html中的跨距使其中的文本变为白色

<button type="button" class="multiselect dropdown-toggle none" data-toggle="dropdown" title="Auckland" style="width: 100%; overflow: hidden; text-overflow: ellipsis;">
    <span class="multiselect-selected-text" style="visibility: visible;">Auckland</span>
    <b class="caret"></b>
</button>
更改css,如:

button.multiselect:hover > span {
  color: #fff;
}
因为,您想要按钮上的悬停效果

button.multiselect:hover > span {
  color: #fff;
}