css3实现钟表效果
本文转载于: 猿2048 网站 css3实现钟表效果 利用css3 transform属性刻画钟表的的刻度以及指针的角度,代码如下: <head> <meta charset= "UTF-8" > <title>Title </title> <style id= "style" > html{ height: 100% ; } body{ width: 100% ; height: 100% ; margin: 0 ; display: -moz-box ; display: -webkit-box ; display: box ; -webkit-box-align: center ; -moz-box-align: center ; box-align: center ; -webkit-box-pack: center ; -moz-box-pack: center ; box-pack: center ; } . clock{ width: 200 px ; height: 200 px ; border: 4 px solid black ; border-radius: 50% ; position: relative ; } . clock ul{ width: 100% ; height: 100% ; position: relative ; margin: 0