<!DOCTYPE html>
<html lang="fr">
<head>
<style>
aside#_left{
width:239px;
margin-left:0px;
margin-right:1px;
display:inline;
position:fixed;
}
#content{
padding-top:70px;
padding-left:225px;
}
.menu01{
background-color:#827F80;
width:80%;
}
ul#nav{
color:#6E7377;
list-style-type:none;
line-height:200%;
padding-top:5px;
padding-bottom:10px;
margin:0px;
padding:0px;
text-align:center;
}
ul#nav li:hover{
cursor:pointer;
border-top:1px solid #7a9bb6;
border-bottom:1px solid #7a9bb6;
background:#5482a0;
}
#nav a:link{
color:#6E7377;
text-decoration:none;
font-weight:bolder;
}
#nav a:hover{
color:#78C6FF;
}
#nav li * {
color: inherit;
}
#nav li:hover * {
color: inherit;
color:#78C6FF;
}
</style>
</head>
<body>
<aside id="_left">
<img src="images/logo.png" />
<nav class="menu01">
<ul id="nav">
<li><a href="#">Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...</a></li>
<li><a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</a></li>
<li><a href="#">Etiam interdum egestas nulla, ac dignissim urna suscipit non.</a></li>
</ul>
</nav>
</aside>
<div id="content">
<p>
Cras at dapibus mi. Vestibulum quis odio odio, a scelerisque mauris. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
Ut ornare convallis elementum. Vivamus tincidunt malesuada lacus nec lacinia. Vestibulum lorem tortor, gravida sed convallis nec, dapibus ut leo. Donec id posuere leo.
Cras quis ante et dolor dictum euismod.
</p>
</div>
</body>
</html>
我想要的只是从 li:hover 填充链接字体颜色。我怀疑我太疯狂了...
基本上,当鼠标移到旁边的导航面板上时,我希望它里面的文本发生变化,不管里面有什么元素,比如<a>
.
更新::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::: 状态:已完成,代码已更新