zoukankan      html  css  js  c++  java
  • 配置字段(居左,居中,居右,高度自适应)

    1.....var note = items.NOTE();
    2....
    // 创建 主体时,需要的key
    _thisKey.push({
    key: childName,
    w: childWidth,
    cls: childType,
    select: selectItem,
    verification: item.REGULARVERIFICATION(),
    func: childType,
    note:note,

    });

    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>';

    后台:
    GetReport_widget?.......里面的   NOTE配置居左中右1,2,3;高度自适应:height-auto;
    (目前配置页面有http://10.0.0.22:8011/Web/NurseingReportA.aspx?REPORT_ID=147929128(护理记录单))
  • 相关阅读:
    .Net Core 微服务学习一
    微服务学习一
    软件开发基本接口学习二
    浏览器根对象window之操作方法
    浏览器根对象window之caches
    Angular面试题三
    浏览器根对象window之performance
    Angular面试题二
    浏览器根对象window之screen
    浏览器根对象window之history
  • 原文地址:https://www.cnblogs.com/benbenjia/p/9371057.html
Copyright © 2011-2022 走看看