问题1:input
输入框如果设置readonly
点击输入框照样有光标
解决:加上unselectable='on'
<input type="text" name="transtype" unselectable='on' class="transtype" readonly>
问题2:修改只读输入框的样式input:read-only{}
不生效
解决:用input[readonly]
问题1:input
输入框如果设置readonly
点击输入框照样有光标
解决:加上unselectable='on'
<input type="text" name="transtype" unselectable='on' class="transtype" readonly>
问题2:修改只读输入框的样式input:read-only{}
不生效
解决:用input[readonly]