[英]ExtJs - How to style textarea text?
我在ExtJs 4.1中有一個textarea,想要修改字體系列和大小。
style : 'font-family: courier new, font-size: 8px'
style : {
'fontFamily' : 'courier new',
'fontSize' : '8px'
}
我也這樣嘗試過:
oTextarea.el.applyStyles({
'font-family' : 'verdana',
'font-size' : '8px'
});
您應該對TextArea字段組件使用配置的fieldStyle:
fieldStyle: {
'fontFamily' : 'courier new',
'fontSize' : '8px'
}
或者,如果該字段已經存在,請使用字段組件的setFieldStyle
函數。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.