因為今天8月28日就是中國的情人節—七夕,作為程序猿一枚的我就只有在家敲代碼咯!但我還是有一顆脫單的心;制作了h5+css+js界面祝小伙伴們:七夕快樂
具體的功能有:
1.下雪的背景動畫
2.下面的文字逐字顯示,并伴有語音
3.中部的圖片3d輪播

附上源碼:
 !doctype html  html  head  meta charset= UTF-8  meta name= Keywords content= 關鍵字,關鍵詞  meta name= Description content= 描述信息  title 七夕快樂 /title  !--css 樣式 層疊樣式表--  style type= text/css  *{margin:0;padding:0;} html,body{width:100%;height:100%;} body{background:url(images/3.jpg);background-size:cover;overflow:hidden;} /*top start*/ .top{width:400px;height:100px;margin:60px auto;font-size:30px;font-family: 華文行楷 color:#fff;} /*background:-webkit-linear-gradient(45deg,#ff0000,#ff0099,#ffff00,#33ff00,#3300cc,#000000);*/ /*end top*/ /*box start*/ .box{width:310px;height:310px;margin:auto;perspective:800px;} .box .pic{position:relative;transform-style:preserve-3d;/*搭載3d環境*/animation:play 10s linear infinite;} /*animation:play 速度 勻速 循環;*/ .box ul li{list-style:none;position:absolute;top:0;left:0;} /*end box*/ #text{width:500px;height:200px;margin:auto;color:#6fade1;margin:auto;font-size:24px;font-family: 方正喵嗚體 } /*定義一個關鍵幀*/ @keyframes play{ from{transform:rotateY(0deg);} to{transform:rotateY(360deg);} /style  /head  body  !--top start--  p >以上就是html5+CSS3+JS七夕告白功能實現詳解的詳細內容,html教程        
鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。
      
新聞熱點
疑難解答