¡@

Home 

2014/10/16 ¤W¤È 12:09:22

jquery Programming Glossary: thediv.css

Total width of element (including padding and border) in jQuery

http://stackoverflow.com/questions/349705/total-width-of-element-including-padding-and-border-in-jquery

the result of the width method Something like this var theDiv #theDiv var totalWidth theDiv.width totalWidth parseInt theDiv.css padding left 10 parseInt theDiv.css padding right 10 Total Padding Width totalWidth parseInt theDiv.css margin left 10 parseInt.. like this var theDiv #theDiv var totalWidth theDiv.width totalWidth parseInt theDiv.css padding left 10 parseInt theDiv.css padding right 10 Total Padding Width totalWidth parseInt theDiv.css margin left 10 parseInt theDiv.css margin right 10 Total.. parseInt theDiv.css padding left 10 parseInt theDiv.css padding right 10 Total Padding Width totalWidth parseInt theDiv.css margin left 10 parseInt theDiv.css margin right 10 Total Margin Width totalWidth parseInt theDiv.css borderLeftWidth 10..