开发者

Creating a text area that fills the available space

开发者 https://www.devze.com 2022-12-10 19:53 出处:网络
I want to be able to create a text area that fills an available space. However because of the different monitor resolutions I don\'t think I can simple开发者_开发百科 specify a character width. Is th

I want to be able to create a text area that fills an available space.

However because of the different monitor resolutions I don't think I can simple开发者_开发百科 specify a character width. Is there anyway of getting around this without having too much logic to specify different character widths for each set of monitor resolutions.


The answer is to simple set

style="width: 100%"

instead of

cols="XX"


<textarea style='width:100%; height:100%'>type here</textarea>
0

精彩评论

暂无评论...
验证码 换一张
取 消