我们在开发的过程中,经常会用到复选框和单选按钮,而当我们让它以多列显示的时候,由于每项的内容长度不一样,就会出现排列错乱的结果。为了避免这种情况,我们在写入列值的时候,可以拼写出一段html代码,并用"[]"括起来即可。例如:
"[<span style=/"width:40%/">]aaaaa[</span>]|aaaaa"
"[<span style=/"width:40%/">]b[</span>]|b"
"[<span style=/"width:40%/">]c[</span>]|c"
"[<span style=/"width:40%/">]ddd[</span>]|ddd"
"[<span style=/"width:40%/">]eeeeeeeee[</span>]|eeeeeeeee"
“|”右边的值是value值,当文档保存时该值也被保存,“|”左边的值是text值,当文档保存时,该值不保存
"[<span style=/"width:40%/">]aaaaa[</span>]|aaaaa"
"[<span style=/"width:40%/">]b[</span>]|b"
"[<span style=/"width:40%/">]c[</span>]|c"
"[<span style=/"width:40%/">]ddd[</span>]|ddd"
"[<span style=/"width:40%/">]eeeeeeeee[</span>]|eeeeeeeee"
“|”右边的值是value值,当文档保存时该值也被保存,“|”左边的值是text值,当文档保存时,该值不保存