|
版本: |
其它(帖子中说明) |
小版本号: |
7 |
|
|
数据库: |
MySQL |
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows 7 |
浏览器: |
IE7 |
|
|
版本3.7 .grid组件里的某列存储css样式,因为过长,会自动换行。参照http://docs.wex5.com/bex5-ui-question-list-10098/
写的Model.prototype.grid1CellRender = function(event) {
if (event.colName == "q_naire_guide" && event.colVal != undefined) {//判断是不是需要换行显示的这列并且列是有值的
event.html = "<div style='word-wrap:normal; white-space:nowrap;'>" + event.colVal + "</div>";//在div中显示列的值event.colVal
}
};
此时,纯文本不换行,但是css样式会自动渲染出来,还是有换行的效果。
<p style="line-height: 1.5em;"> <span style="color: rgb(31, 73, 125); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"><br/></span></p><p style="line-height: 1.5em;"> <span style="color: rgb(0, 112, 192); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"><br/></span></p><p style="line-height: 1.75em;"> <strong><span style="color: rgb(0, 112, 192); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';">文本文本文本文本文本文本文本文本文本文本:</span></strong></p><p style="line-height: 1.75em;"> <strong><span style="color: rgb(0, 112, 192); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';">  文本文本文本文本文本文本文本文本文本文本</span></strong>
</p><p style="line-height: 1.75em;"> <strong><span style="color: rgb(0, 112, 192); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"> 文本文本文本文本文本文本文本文本文本文本<span style="color: rgb(255, 0, 0); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';">2017年05月04日 18:00-2017年05月07日 23:59</span>,文本文本文本文本文本文本文本文本文本文本。</span></strong></p><p style="line-height: 1.75em;"> <strong><span style="color: rgb(0, 112, 192); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"> 文本文本文本文本文本文本文本文本文本文本</span></strong></p><p> <br/></p><p style="text-align: right; line-height: 1.75em;"> <strong><span style="color: rgb(0, 112, 192); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"><span style="color: rgb(0, 112, 192); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"><span style="font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei'; line-height: 24px; text-align: center;">文本文本文本文本文本文本文本文本文本文本 </span> </span> </span></strong></p><p style="line-height: 1.75em; text-align: right;"> <strong><span style="color: rgb(0, 112, 192); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"> 文本文本文本文本文本文本文本文本文本文本 </span></strong><span style="color: rgb(0, 176, 240); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"><br/></span></p><p style="text-align: right; line-height: 1.75em;"> <span style="color: rgb(0, 176, 240); font-size: 16px; font-family: 微软雅黑, 'Microsoft YaHei';"> </span></p><p> <br/></p><p> <br/></p><p style="display: none;"> <br/></p>
|
|