Home >Web Front-end >HTML Tutorial >textarea的宽度能否用像素定义,因为cols在chrome和firefox下的宽度不一样?_html/css_WEB-ITnose

textarea的宽度能否用像素定义,因为cols在chrome和firefox下的宽度不一样?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:36:54895browse


在chrome下比在firefox在要长很多,有什么方法可以固定宽度?


回复讨论(解决方案)

textarea style="width:120px;height:xxxpx"

原来我用了rows+ width的组合,难怪不行。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn