[英]How to build a hover effect with css only, or css+jquery
1 使描述可見 2 定位它 3 利潤
來自工作現場的示例
css:
.m-gallery-product-item .hover-wrap {
display: none;
height: 0;
}
.m-gallery-product-item .item-main:hover .hover-wrap {
display: block;
position: relative;
z-index: 3;
}
html:
<div class="m-gallery-product-item">
<div class="item-main">...
<div class="item-img">,</div>
<div class="item-info">,</div>
<div class="hover-wrap">
<div class="hover-main">
<div class="tags"> ,,,,,,,,, </div>
</div>
</div>
</div>
</div>
請參閱 ebay.com alibaba.com 上的工作示例,許多大型和流行的銷售網站長期使用該標記,只需將其復制粘貼到您的代碼中即可!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.