最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

如何在一個(gè)圓里繞著轉(zhuǎn)

請(qǐng)問怎么才能讓一個(gè)物體在圓里面繞著圓轉(zhuǎn)?

正在回答

3 回答


<!DOCTYPE html>

<html>

<head>

? <meta charset="UTF-8">

? <title>旋轉(zhuǎn)的小球</title>

? <style type="text/css">

? ?.box {?

? ? ? margin:100px auto;

? ? ? box-sizing: border-box;?

? ? ? background:red;

? ? ? height: 60px; width: 60px;?

? ? ? border-radius: 50%;?

? ? ? /*box-shadow:0 -20px 0 36px green; */

? ? ? box-shadow:inset 0 -20px 0 26px yellow ;?


? ? ? animation: rotate 1s infinite linear;?

? ? }?

? @keyframes rotate{

?0% { transform: rotate(0deg); }

?100% { transform: rotate(360deg); }?

? ?}?

? </style>

</head>

<body>

? <div></div>


</body>

</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_雪夜_2 提問者

非常感謝,我一直都對(duì)這些不是很理解
2016-12-21 回復(fù) 有任何疑惑可以回復(fù)我~

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標(biāo)題文檔</title>
<style>
.box{
?width:400px;
?height:400px;
?border:1px solid #000;
?border-radius:100%;
?margin:50px auto;
?position:relative;
}
.path{
?width:300px;
?height:300px;
?border:1px dashed #ccc;
?border-radius:100%;
?position:absolute;
?left:50px;
?top:50px;
}
.ball{
?width:100px;
?height:100px;
?background-color:rgba(255,0,0,.8);
?border-radius:100%;
?position:absolute;
?left:50px;
?top:50px;
?animation:rotate 3s linear infinite;
}
@keyframes rotate{
?from{
??transform-origin:150px 150px;
??transform:rotate(0deg);
?}
?to{
??transform-origin:150px 150px;
??transform:rotate(360deg);
?}?
}
</style>
</head>

<body>
<div class="box">
?<div class="path"></div>
?<div class="ball"></div>
</div>
</body>
</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~

這上面的代碼是正確的嗎?為什么我輸入進(jìn)去后沒有任何反應(yīng)

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_BlackDatura_0

在div標(biāo)簽里加上class="box"就可以了
2017-05-15 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

如何在一個(gè)圓里繞著轉(zhuǎn)

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)