用css3製作美猴王刷金箍棒

來源:互聯網
上載者:User

標籤:form   es2017   span   for   blog   meta   center   金箍棒   absolute   

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
*{
padding:0;
margin:0;
}

 



#hd{
width:800px;
height:600px;
border: 2px solid blue;
background: url("sun2.jpg") no-repeat
right 50px;
background-size: 500px;
position: relative;

}
#hd:hover #jgb{
transform: rotate(360deg);
}
#jgb{
width:50px;
height:500px;
border: red;
/*margin:0 auto;*/
/*transform: rotate(30deg);*/
position: absolute;
left:309px;
top:50px;
transition: transform 1s;

}
#jgb div:nth-child(1){
width:50px;
height:100px;
background: gold;

}
#jgb div:nth-child(2){
width:50px; height:300px; background: red; color: yellow; font-size:30px; font-family:"微軟雅黑"; text-align: center; padding-top: 30px; } #jgb div:nth-child(3){ width:50px; height:100px; background: gold; } </style></head><body><div id="hd"> <div id="jgb"> <div></div> <div>如意金箍棒</div> <div></div> </div></div></body></html>

用css3製作美猴王刷金箍棒

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.