SPATIUM Mobile
주소복사
About Operating System Languages Tools Favorites Notice Visit TEST  
     ADK (3)
     android (3)
     ASP (5)
     ASP.Net (1)
     C# (5)
     HTML (9)
     JAVA (7)
     JavaScript (9)
     jQuery (5)
     Mobile Web (2)
     node.js (1)
     Oracle (8)
     PHP (7)
     Spring Framework (4)
     SQL (17)
     WPF (5)
   ID  
   Password  
  |  
  Location United States
  IP Address 18.219.86.155
2024. 04
123456
78910111213
14151617181920
21222324
25
2627
282930
Category  Languages, jQuery
Writer 김태우 Date 2012-05-07 10:56:55 Visit 3609
jquery 객체 style 사용시

 

jquery 이용, simple css 스타일 처리

 

// get value

var view_flag = $('.content').css('display');

var c_top = $('.content').position().top;    // 부모 객체 내에서의 상대 좌표, 절대 좌표 offset().top

var c_left = $('.content').position().left;    // 부모 객체 내에서의 상대 좌표, 절대 좌표 offset().left

var w = $('.content').width();

var h = $('.content').height();

 

// set value

$('.content2').css('display', view_flag);

$('.content2').css('top', c_top).css('left', c_left) ;

$('.contetn2').width(w);

 

Tags  jquery css style
  Relation Articles
[Languages-jQuery] jquery 객체 style 사용시 (2012-05-07 10:56:55)
  Your Opinion
Member ID
150 letters
Copyright (C) SPATIUM. All rights reserved.
[SPATIUM]WebMaster Mail