webkit browsers are getting elements.width() wrong
问题 I am trying to get the correct calculated width of an container. All the browsers are getting the calculated width correctly. (even IE) but surprisingly Chrome and webKit browsers are getting a wired number. I am trying to get the total width of the <li> including its border and padding + its margin-right. Then multiply that by the length of <li> 's to get the exact width needed to hold them I tracked down the problem with the width calculation. Can anyone tell me whats wrong. Thanks HTML