日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

鸭子表练习

發(fā)布時(shí)間:2024/3/13 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 鸭子表练习 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

CSS有關(guān)旋轉(zhuǎn)的練習(xí)
只做出了針表旋轉(zhuǎn)的效果
效果圖

代碼

<!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>.clock{width: 500px;height:500px;border-radius: 50%;/* border: 10px solid black; */position:relative;background-image: url(lib/img/duck.jpg);background-size: contain;/* background-color: #bfa; */}.clock > div{position: absolute;left: 0;right: 0;top: 0;bottom: 0;margin: auto;}.hour-wrapper{width: 60%;height:60%;animation: run 43200s steps(12) infinite;}.hour{width: 5px;height: 50%;background-color: black;margin: 0 auto;}.min-wrapper{width: 75%;height:75%;animation: run 3600s steps(60) infinite;}.min{width: 3px;height: 50%;background-color: black;margin: 0 auto;}.sec-wrapper{width: 90%;height:90%;animation: run 60s steps(60) infinite;}.sec{width: 1px;height: 50%;background-color: red;margin: 0 auto;}@keyframes run {from{transform: rotateZ(0);}to{transform: rotateZ(360deg);}}</style> </head> <body><div class="clock"><div class="hour-wrapper"><div class="hour"></div></div><div class="min-wrapper"><div class="min"></div></div><div class="sec-wrapper"><div class="sec"></div></div></div> </body> </html>

素材

總結(jié)

以上是生活随笔為你收集整理的鸭子表练习的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。