我對HTML5/Bootstrap更新,我試圖爲我的響應圖像添加基本的懸停狀態,並使它們充當按鈕。這是我目前開發的。使用圖標在圖像上創建懸停狀態
<div align="center" class="col-sm-2">
<a href="#">
<picture>
<!--[if IE 9]><video style="display: none;"><![endif]-->
<source srcset="../../../img/img1.png" class="img-responsive" media="(min-width: 800px)">
<!--[if IE 9]></video><![endif]-->
<img srcset="../../../img/img1-sm.png, ../../../img/img1-sm.png" class="img-responsive" alt="Image One">
</picture>
</a>
</div>