新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
使用CSS3怎么實(shí)現(xiàn)一個圖片抽屜式效果
這篇文章將為大家詳細(xì)講解有關(guān)使用CSS3怎么實(shí)現(xiàn)一個圖片抽屜式效果,文章內(nèi)容質(zhì)量較高,因此小編分享給大家做個參考,希望大家閱讀完這篇文章后對相關(guān)知識有一定的了解。
在和平等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站設(shè)計、網(wǎng)站制作 網(wǎng)站設(shè)計制作定制網(wǎng)站制作,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站建設(shè),營銷型網(wǎng)站建設(shè),外貿(mào)網(wǎng)站制作,和平網(wǎng)站建設(shè)費(fèi)用合理。
HTML代碼:
CSS代碼:
*{ margin:0;padding:0; } ul{ list-style:none; } a{ font-size:16px;text-decoration:none;color:#666; } div{ width:300px;margin:20px auto; } #list li{ line-height:40px;height:40px;background:#efefef;text-indent:1em; margin-bottom:3px;overflow:hidden;-webkit-transition:height 0.3s ease;-moz-transition:height 0.3s ease-ms-transition:height 0.3s ease;-o-transition:height 0.3s ease;transition:height 0.3s ease;} #list li img{ width:300px;height:200px;} #list li:nth-child(1){height:240px;background:#F36;} #list li:nth-child(1) a{ color:#fff; } #list:hover li{ height:40px;background:#efefef; } #list:hover li a{color:#666;} #list li:hover{ height:240px; background:#F36;} #list li:hover a{ color:#fff; }
關(guān)于使用CSS3怎么實(shí)現(xiàn)一個圖片抽屜式效果就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。
本文名稱:使用CSS3怎么實(shí)現(xiàn)一個圖片抽屜式效果
瀏覽路徑:http://www.ef60e0e.cn/article/gpjoog.html