最赞回答 / 慕数据3427650
这里的a:hover{},其中a是指<a>标签,当然了也可以替换成其他标签,只是因为兼容性问题,<a>标签表现的更好.这里想要改变简单,只需要再写一个span:hover{}或者这么写span:hover,a:hover{color:red;}.
2017-04-24
最新回答 / 慕后端6854955
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>勇气 居中</title> <style type="text/css"> h1{ text-align:center; } </style...
2017-04-23
最赞回答 / 乘风扶摇九万里
h1,span{color:red;} .first,#second>span{color:green}注意你的代码设定的是#second>span为绿色,然而胆小如鼠在.first部分。如下代码可实现要求:h1,span{color:red;}.first,span{color:green;}
2017-04-23