style.right and .style.top options not updated in

后端 未结 1 1561
臣服心动
臣服心动 2021-01-24 03:30

I have two pictures, one of a wheel and another of an arrow. I want to position the arrow so it will point down on the wheel.

In my body part I defined:

         


        
1条回答
  •  礼貌的吻别
    2021-01-24 03:42

    screen.width/2; is going to give you a number, not a CSS length. You need to add "px" to it.

    0 讨论(0)
提交回复
热议问题