css抖動(想怎麼抖就怎麼抖)很好玩哦,css抖動

來源:互聯網
上載者:User

css抖動(想怎麼抖就怎麼抖)很好玩哦,css抖動

其實要想做抖動不難,最關鍵的就是會匯入外部的css樣式就好了。

以下是我編寫的代碼

<!doctype html><html lang="en"><head><meta charset="UTF-8"><title>Document</title><link href="csshake.min.css" type="text/css" rel="stylesheet" /><style type="text/css">              h1{color:red;}        h3{color:#0000ff;}</style></head><body style="text-align:center"><h1 class="preview-item big shake shake-hard shake-constant hover-stop">英雄們都給我抖起來 shake</h1><h3 class="shake shake-hard">抖動著的英雄<br />不一樣的英雄</h3><div><span class="shake shake-opacity"><img src="2.jpg" height="200" width="400" /></span><span class="shake shale-slow"><img src="4.jpg" height="200" width="400" /></span></div><div><span class="glass shake shake-hard freez"><img src="5.jpg" height="200" width="400" /></span></div><p></p><p class="shake shake-slow">點哪抖哪</p><p>更多詳情請點擊 <a href="http://blog.csdn.net/qq_24928451 "style="text-decoration:none" target="_blank">csdn</a></p><p>想要整個網頁都一起抖動嗎<a href="2.html" style="text-decoration:none" target="_blank">點這裡吧!</a></p></span></body></html>


<!doctype html><html lang="en"><head><meta charset="UTF-8"><title>Document</title><link href="csshake.min.css" type="text/css" rel="stylesheet" /><style type="text/css">              h1{color:red;}        h3{color:#0000ff;}        body{text-align:center}</style></head><body class="preview-item big shake shake-hard shake-constant hover-stop"><h1 >英雄們都給我抖起來 shake</h1><h3 >抖動著的英雄<br />不一樣的英雄</h3><div><span ><img src="2.jpg" height="200" width="400" /></span><span ><img src="4.jpg" height="200" width="400" /></span></div><div><span ><img src="5.jpg" height="200" width="400" /></span></div><p></p><p >點哪抖哪</p><p>更多詳情請點擊 <a href="http://blog.csdn.net/qq_24928451 "style="text-decoration:none" target="_blank">csdn</a></p></span></body></html>


差不多這樣

當你們用時,記得要把圖片地址改一下!

http://elrumordelaluz.github.io/csshake/css/csshake.min.css   這是css樣式下載表的地址,要用時要下載,直接另存新檔就可以了。記得要把css樣式表和網頁放在一起,圖片也要放到一起。

最好像我這樣建個檔案夾。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.