亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

CSS3絢麗照片墻

Ben 產品經理
難度初級
時長30分
學習人數
綜合評分9.57
192人評價 查看評價
9.7 內容實用
9.5 簡潔易懂
9.5 邏輯清晰
  • <!DOCTYPE html> <html lang="zh-CN"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> .mainDiv{ width:100px; height:100px; margin:100px auto; text-align: center; line-height: 100px; font-weight: bold; color:#ddd; background:#ddd; border:1px solid #ddd; -webkit-transform:rotate(0deg) scale(1); -moz-transform:rotate(0deg) scale(1); transform:rotate(0deg) scale(1); -webkit-transition:2s; -moz-transition:2s; transition:2s; } .mainDiv:hover{ color:#000; background:red; -webkit-transform:rotate(720deg)scale(2); -moz-transform:rotate(720deg)scale(2); transform:rotate(720deg)scale(2); } </style> <title>css3特效</title> </head> <body> <div class="mainDiv">您好</div> </body> </html>
    查看全部
    0 采集 收起 來源:編程練習

    2018-03-22

  • transition
    查看全部
  • transition
    查看全部
  • transform
    查看全部
  • css3新屬性
    查看全部
  • <!DOCTYPE html> <html lang="zh-CN"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> .mainDiv{ width:100px; height:100px; margin:100px auto; text-align: center; line-height: 100px; font-weight: bold; color:#ddd; background:#ddd; border:1px solid #ddd; -webkit-transform:rotate(0deg) scale(1); -moz-transform:rotate(0deg) scale(1); transform:rotate(0deg) scale(1); -webkit-transition:2s; -moz-transition:2s; transition:2s; } .mainDiv:hover{ color:#000000; background:red; -webkit-transform:rotate(720deg) scale(2); -moz-transform:rotate(720deg) scale(2); transform:rotate(720deg) scale(2); } </style> <title>css3特效</title> </head> <body> <div class="mainDiv">您好</div> </body> </html>
    查看全部
    0 采集 收起 來源:編程練習

    2018-03-22

  • 關鍵技術點: 1、box-shadow:陰影 功能:給元素的邊框添加陰影的效果 語法:box-shadow:X軸偏移量 Y軸偏移量 [陰影模糊半徑][陰影擴展半徑][陰影顏色][投影方式] 2、position:給元素定位 功能:給元素定位,主要用到絕對定位 用法:position:absolute與posistion:relative 配合使用實現相對于包含元素(參照元素)定位 3、z-index:設置元素上下層顯示順序 功能:設置元素的上下層顯示順序 語法:Z-index:整數 注意:擁有更高堆疊順序的元素總是會處于堆疊順序較低的元素的前面 4、transform:元素變形。rotate(旋轉角度)scale(縮放倍數)skew(扭曲元素) 功能:是元素變形的屬性,其【配合rotate(旋轉角度),scale(縮放倍數),skew(扭曲元素)等參數一起 使用 語法:transform:rotate(旋轉角度) transform:scale(縮放倍數) 5、transition設置元素由樣式1轉變成樣式2的過程所需時間。 語法:transition:durantion 注意:這只是transition其中的一種用法
    查看全部
  • 特效實現步驟: 1.放位置各異的照片 2.每張照片給一定旋轉角度 3.照片的動畫效果(陰影,緩慢旋轉,緩慢放大特效)
    查看全部
  • CSS3新特性運用:絢麗照片墻
    查看全部
  • .mainDiv:hover{ background-color:red; color:black; -webkit-transform:rotate(720deg) scale(2); -moz-transform:rotate(720deg) scale(2); transform:rotate(720deg) scale(2); }
    查看全部
    0 采集 收起 來源:編程練習

    2015-06-15

  • <!DOCTYPE html> <html lang="zh-CN"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> .mainDiv{ width:100px; height:100px; margin:100px auto; text-align: center; line-height: 100px; font-weight: bold; color:#ddd; background:#ddd; -webkit-transform:rotate(0deg) scale(1); -moz-transform:rotate(0deg) scale(1); transform:rotate(0deg) scale(1); -webkit-transition:2s; -moz-transition:2s; transition:2s; } .mainDiv:hover{ width:130px; height:130px; background-color:#B9E1EE; color:red; font-weight:bold; border-radius:100px; line-height:130px; -webkit-transform:rotate(720deg) scale(2); -moz-transform:rotate(720deg) scale(2); } </style> <title>css3特效</title> </head> <body> <div class="mainDiv">I ? you</div> </body> </html>
    查看全部
    0 采集 收起 來源:編程練習

    2018-03-22

  • box-shadow(給元素的邊框添加陰影) 語法: box-shadow: x軸偏移量 y軸偏移量 [陰影模糊半徑] [陰影擴展半徑] [陰影顏色] [投影方式]
    查看全部
  • 關鍵技術點: 1、box-shadow:陰影 2、position:給元素定位 3、z-index:設置元素上下層顯示順序 4、transform:元素變形。rotate(旋轉角度)scale(縮放倍數)skew(扭曲元素) 5、transition設置元素由樣式1轉變成樣式2的過程所需時間。transition:durantion
    查看全部
  • 旋轉特效
    查看全部
    0 采集 收起 來源:編程練習

    2015-06-01

  • transition transform
    查看全部
    0 采集 收起 來源:編程練習

    2015-05-21

舉報

0/150
提交
取消
課程須知
本課程適合對CSS3感興趣的初學者,通過簡單絢麗的案例來熟悉重要的部分CSS3動畫屬性。
老師告訴你能學到什么?
1、簡單CSS3實現任意設置元素的旋轉角度。 2、簡單CSS3實現圖片的等比縮放。 3、利用CSS3將元素的樣式變化以動畫的方式展現出來。

微信掃碼,參與3人拼團

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!