How can i find out the size of a cell with javascript

后端 未结 4 894
盖世英雄少女心
盖世英雄少女心 2021-01-28 19:06

I have a popup that pops up right underneathe a so it looks like the (don\'t ask why). on 1024 *760 its the same width as the tab

4条回答
  •  猫巷女王i
    2021-01-28 19:21

    jQuery is ideal if you can use it.

    $('#popupId').width( $('#cellID').width() );
    

    or you might need to use outerWidth(), depending on your needs.

提交回复
热议问题