摘要: 地址越精细,优先级越高<a class="button" href="###"></a>这个时候可以写成a.button,会覆盖掉之前定义的a:link, a:visited {color:#333333;text-decoration:none;}例子如下:html<form action="##" class="form"> <p> <input type="submit" class="button" value=& 阅读全文
posted @ 2013-05-21 15:03 boyanh 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 总结:当一个块里面包含a,b两个元素,想让它们在一条线上,a居左,b居右。a没用浮动,b用浮动。写代码的时候把b写在a的前面。或者a,b都分别加上浮动。不然IE6.IE7下面会出来b换行不和a在一条线上。错误展示<h1 class="title"><span class="title_span">国培计划</span> <!--无浮动--><a href="###" class="more" >更多</a> <!--有浮动--> & 阅读全文
posted @ 2013-05-21 14:42 boyanh 阅读(174) 评论(0) 推荐(0) 编辑