a:悬停并更改父div背景颜色

时间:2017-02-14 11:41:54

标签: html css css3

我想在社交网络链接(facebook,twitter等)上悬停时更改父div#social的颜色:



<div class="col-sm-4" id="social">
  <a id="facebook" href="#"> <span>Facebook</span></a><br>
  <a id="twitter" href="#"> <span>Twitter</span></a><br>
  <a id="google-plus" href="#"> <span>Google plus</span></a><br>
  <a id="instagram" href="#"> <span>Instagram</span></a><br>
</div>
&#13;
&#13;
&#13;

This is the example

0 个答案:

没有答案