国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - Click the button to let js control the rotation of the div. It can only be rotated once, and it will no longer rotate when clicked again?
曾經(jīng)蠟筆沒有小新
曾經(jīng)蠟筆沒有小新 2017-05-19 10:30:33
0
3
1115

The first time the button is clicked, p will rotate 90 degrees. Clicking it again will be useless.

曾經(jīng)蠟筆沒有小新
曾經(jīng)蠟筆沒有小新

reply all(3)
左手右手慢動(dòng)作

Get the current degree of rotation and add 90 to it instead of setting the world to 90

世界只因有你

1. That’s because your perspective has never changed

Ty80

This question is easy to say, just like the answers of the two people above, neither simple nor simple.
If you write more standardizedly.

//獲取元素
var op = document.getElementById("box");

//每次點(diǎn)擊獲取其旋轉(zhuǎn)的角度
//這里由于需要獲取transform:ratate屬性是比較麻煩的。
//我們記為操作Action,得到結(jié)果為nCurrRotate。

//設(shè)置新的值
box.style.transform='rotate('+ (nCurrRotate+90) +'deg)';

Action

Action reference here: [1]: http://blog.5ibc.net/p/25577....

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template