TextBox中 cls string 允许给组件添加一个自定义css类名,如何使用?

提问 已结 2 3514
悬赏:20飞吻

html 部分:

<input type="text" name="username" data-toggle="topjui-textbox" data-options="required:true,editable:false,readonly:true,prompt:'请输入用户名' ,cls:'mygragey'">

CSS部分
<style type="text/css">
.mygragey {
background-color: gainsboro;
}
</style>


无法改变文本框的背景颜色
回帖
回帖须知