怎样利用js通过RadioButton控制textbox输入文字的大小

怎样利用js通过RadioButton控制textbox输入文字的大小,第1张

oncheckedchanged是服务器事件,不能用js方法的,要改成onclick="SetFontSize()"

建议你改用客户端控件

例如<input type="radio" onclick="SetFontSize()" />

input radio只有那个圆点,需要你在后面加个Label显示文字

setTextAppearance:修改布局内文字的外观样式:

选中加粗:mRbMain1.setTextAppearance(R.style.txt_bold)

未选中默认:mRbMain1.setTextAppearance(R.style.txt_nomal)


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/11241198.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-14
下一篇 2023-05-14

发表评论

登录后才能评论

评论列表(0条)

保存