jquery add width + padding;

я пытаюсь сделать var width = ($ (this) .width () + $ (this) .css ('padding-left') + $ (this) .css ('padding) -right '));

добавить ширину к отступу, так что я должен получить ширину = 200 + 4 + 4 = 208 instead i end up with 2004px4px;

how can i force it to add them to get 208?

6
задан Hailwood 23 August 2010 в 03:08
поделиться