label控件要想实现自动换行,必须设置宽度。
代码如下:
<input type="label" value="我是label控件,我的作用是显示标签" width="100" singleLine="false" />
<input type="label" value="我是label控件,我的作用是显示标签" width="100" singleLine="false" />
<input type="label" value="我是label控件,我的作用是显示标签" width="100" singleLine="false" />