![html css hover也会冒泡 html css hover也会冒泡](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
<HEAD>
<style type="text/css">
div:hover
{
color:blue !important;
}
</style>
</HEAD>
<body>
<div style="color:#CC0000;display:block" class="ttt">
aaaaaaa
<div style="color:#00CC00;display:block" class="ttt">
bbbbbbb
</div>
</div>
</body>
如上,当鼠标放置到bbbbbb上时,aaaaaa和bbbbb会同时变成蓝色。