设置textarea禁止拉伸的方法: resize:none 221106笔记

设置textarea禁止拉伸的方法就是设置css的resize的值为none
resize:none
设置textarea禁止拉伸的方法: resize:none 221106笔记_第1张图片

<textarea id=ttaa010 style="position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:1200px; height:300px;  font-size:200px; text-align:center; font-weight:bold; text-shadow:3px 3px 6px black; box-shadow:3px 3px 6px black; color:red; resize:none; ">
resize:none
textarea>

style=“resize:none”

style="resize:none"

element.setAttribute(‘style’,‘resize:none’);

element.setAttribute('style','resize:none');

element.style.resize=‘none’;

element.style.resize='none';

element.style.setProperty(‘resize’,‘none’);

element.style.setProperty('resize','none');

你可能感兴趣的:(HTML,CSS,JS,前端,javascript,css)