欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

CSS3怎么實(shí)現(xiàn)照片墻功能

這篇文章主要講解了“CSS3怎么實(shí)現(xiàn)照片墻功能”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“CSS3怎么實(shí)現(xiàn)照片墻功能”吧!

創(chuàng)新互聯(lián)自2013年創(chuàng)立以來(lái),是專(zhuān)業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目網(wǎng)站制作、做網(wǎng)站網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元蘇州做網(wǎng)站,已為上家服務(wù),為蘇州各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:18982081108

HTML

代碼如下:


<body>
    <h3>照片墻制作</h3>
    <div class="container">
        <img class="img1" src="img/img (1).jpg" height="150" width="150" alt="">
        <img class="img2" src="img/img (2).jpg" height="160" width="200" alt="">
        <img class="img3" src="img/img (3).jpg" height="170" width="200" alt="">
        <img class="img4" src="img/img (4).jpg" height="240" width="200" alt="">
        <img class="img5" src="img/img (5).jpg" height="300" width="300" alt="">
    </div>
</body>

CSS(此處省略了瀏覽器私有屬性前綴!)

代碼如下:


<style>
        * {margin:0; padding:0;}
        body { background-color: #eee; padding-top: 50px;}
        h3 { text-align: center;}
        .container { position: relative; width:1000px; height:700px; margin:0px auto; }
        img { position: absolute; top:50px; left:100px; cursor: pointer;
            padding:10px 10px 25px; background-color: #fff; border:1px solid #ddd;
            transition:0.5s; box-shadow: 3px 3px 3px #ccc;
        }
        .img1 {    left:40px;    top:20px;    transform:rotate(30deg);    z-index: 1;}
        .img2 {    left:156px;    top:156px;    transform:rotate(-30deg);    z-index: 1;}
        .img3 {    left:381px;    top:60px;    transform:rotate(30deg);    z-index: 1;}
        .img4 {    left:458px;    top:256px;    transform:rotate(30deg);    z-index: 1;}
        .img5 {    left:684px;    top:110px;    transform:rotate(-40deg);    z-index: 1;}
        img:hover {    transform:rotate(0deg);    transform:scale(1.5);    box-shadow: 6px 6px 6px #656565; z-index: 2;}
</style>

效果圖:

CSS3怎么實(shí)現(xiàn)照片墻功能

感謝各位的閱讀,以上就是“CSS3怎么實(shí)現(xiàn)照片墻功能”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)CSS3怎么實(shí)現(xiàn)照片墻功能這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!

當(dāng)前名稱(chēng):CSS3怎么實(shí)現(xiàn)照片墻功能
文章地址:http://chinadenli.net/article14/gopgde.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供電子商務(wù)、關(guān)鍵詞優(yōu)化標(biāo)簽優(yōu)化、網(wǎng)站排名網(wǎng)頁(yè)設(shè)計(jì)公司、虛擬主機(jī)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都seo排名網(wǎng)站優(yōu)化