需求:
- 在页面上显示四个列表,初始时字体为黑色。
- 鼠标点击某一个列表时,该列表的颜色变为红色,其余列表仍为黑色。
代码实现:
<!-- css -->
<style>
.red{
color: red;
}
</style>
<!-- html -->
需求:
代码实现:
<!-- css -->
<style>
.red{
color: red;
}
</style>
<!-- html -->