如何阻止 sencha textareafield 的可调整大小的属性?
我尝试使用 css as
.textareaclass {
resize: 'none'
}
并将 textareaclass
添加到 textarea 的 cls 中。但这对我不起作用。
最佳答案
使用 textareafield 的 cls
属性只是在字段元素上设置一个类。这是包裹在真正的 textarea dom 元素周围的 div 之一。
通过使用 inputCls
属性,在 input/textarea dom 元素本身上设置了 css 类。
Ext.create('Ext.field.TextArea', {
label: 'myLabel',
inputCls: 'textareaclass'
});
还要确保您没有在 css 属性值两边添加单引号。
.textareaclass {
resize: none;
}
关于javascript - 如何阻止 sencha textareafield 的可调整大小的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23614810/