I have a rollover effect over an image which can be seen here: http://www.sdimmigrationlawyers.com/(頁面底部 - 驅逐出境圖片)CSS和<a href> issue
我想添加一個鏈接,但我的標籤不起作用。我應該如何實現它(1)具有翻轉效果,和(2)有鏈接?
CSS:
<div class="view view-sixth">
<img class="alignleft wp-image-335 size-full" alt="" src="http://www.sdimmigrationlawyers.com/wp-content/uploads/2015/06/deportation.jpg">
<a href="http://www.sdimmigrationlawyers.com/immigration-services/deportation-defense">
<div class="mask"></div>
</a>
<p>
<a href="http://www.sdimmigrationlawyers.com/immigration-services/deportation-defense"></a>
</p>
<div class="content">
<h2>Deportation Defense</h2>
</div>
</div>
HTML:
<div class="paragraph_dui_crime_box2">
<h2>San Diego Deportation Lawyer</h2>
<div class="view view-sixth">
<img class="alignleft wp-image-335 size-full" src="http://www.sdimmigrationlawyers.com/wp-content/uploads/2015/06/deportation.jpg" alt="" />
<a href="http://www.sdimmigrationlawyers.com/immigration-services/deportation-defense">
<div class="mask"></div>
</a>
<div class="content">
<h2>Deportation Defense</h2>
</div>
</div>
只要把錨標記周圍的'h2'。 – DRD