How can I scale a div to 100% height and width inside of another element

后端 未结 3 1030
青春惊慌失措
青春惊慌失措 2021-01-06 01:21

How can I scale a div to 100% height and width inside of another element? In my case a sourrounding td. Since I\'m a plugin I can not control the other HTML on the page. Her

3条回答
  •  孤街浪徒
    2021-01-06 01:53

    Why bothing having a div within a div if its going to be 100% of the height and the width? Is there no other way of just using the containing div for your purpose?

    It probably isnt working because height fails unless the containg element has some definite height applied to it.

提交回复
热议问题