首页 > Web开发 > 详细

html 表

时间:2019-06-20 19:52:06      阅读:107      评论:0      收藏:0      [点我收藏+]

例:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#clock{
width: 400px;
height: 400px;
border: 1px solid red;
border-radius: 50%;
/*分 秒 相对表的定位*/
position: relative;
}
#minute{
width: 10px;
height: 100px;
background: black;
position: absolute;
top:100px;
left:196px;
}
#second{
width: 6px;
height: 140px;
background: blue;
position: absolute;
left:196px;
top:60px;
/*更换圆心点*/
transform-origin:bottom;
/*添加过渡*/
transition:transform 10s linear 0s;
}
#second:hover{
transform: rotate(360deg);
}
#minute{
transform-origin:bottom;
/*添加过渡*/
transition:transform 60s linear 0s;
}
#minute:hover{
transform: rotate(360deg);
}
</style>
</head>
<body>
<div id="clock">
<div id="minute"></div>
<div id="second"></div>
</div>
</body>
</html>

html 表

原文:https://www.cnblogs.com/mpenghao/p/11060861.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!