Axi*_*iol 5 css jquery textarea rows jquery-mobile
所以,我想textarea
在一行上显示一个.
但是jQuery Mobile并不这么认为......无论我在rows
属性中设置什么值,它总是2行高......
它有什么解决方案吗?
Jas*_*per 11
jQuery Mobile CSS为textarea
元素设置了一个特定的高度:
textarea.ui-input-text {
height : 50px;
-webkit-transition : height 200ms linear;
-moz-transition : height 200ms linear;
-o-transition : height 200ms linear;
transition : height 200ms linear;
}
Run Code Online (Sandbox Code Playgroud)
您可以创建自己的规则以将此高度覆盖为更多单行:
.ui-page .ui-content .ui-input-text {
height : 25px;
}?
Run Code Online (Sandbox Code Playgroud)