开发者

panel.style.left in JQuery

I want to do this using jquery :

 panel.style.left = '150px'

How can I do this ?

I tried this:

  var panel = $('#Panel1');
  panel.position().left = 150;

but开发者_如何学JAVA It didn't work


This is the way:

panel.css("left", 150);


Try: panel.css('left', '150px');

Check the docs on the .css() method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜