首页 > 其他 > 详细

配置字段(居左,居中,居右,高度自适应)

时间:2018-07-26 14:17:11      阅读:138      评论:0      收藏:0      [点我收藏+]

var style = (lis.visible*1 === 0 ? ‘display: none;‘ : ‘‘);


var abbrStyle = ‘‘;


// style +=‘white-space:‘ +‘normal‘+‘;‘;
if(lis.note ===‘left‘) {
abbrStyle += ‘ text-align:left;‘
}else if(lis.note ===‘right‘) {
abbrStyle += ‘text-align:right;‘
} else if($.trim(lis.note) ===‘height-auto‘){
abbrStyle += ‘white-space:normal; text-align:left; text-overflow: normal;word-break: break-all;‘;
}


console.log(abbrStyle);
str += ‘<span data-func="‘ + lis.func + ‘" ‘ +
‘data-key="‘ + lis.key + ‘" ‘ +
‘data-select="‘ + lis.select + ‘" ‘ +
‘class=" ‘ + lis.cls + ‘ ‘ + lis.w + ‘ " ‘ +
style=" ‘ + fryyClass + style + ‘ " ‘ +
‘data-msg="‘+dataMsg+‘" ‘ +
‘data-verification="‘+lis.verification+‘" ‘ +
‘title="‘+ title +‘">‘ +
‘<abbr style="‘+abbrStyle+‘">‘+
value +
‘</abbr>‘ +
‘</span>‘;

后台:配置居左中右1,2,3;高度自适应:height-auto;

配置字段(居左,居中,居右,高度自适应)

原文:https://www.cnblogs.com/benbenjia/p/9371057.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!