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(护理记录单))
  • 相关阅读:
    Numpy基础
    Numpy基础
    Java复习之数组
    Java复习之数组
    Python基础2
    第六章 3 列表生成式
    第六章 1 列表(创建,特点)
    IEEE(电气和电子工程师协会)会议排名
    第五章 3 流程控制语句break和continue
    第五章 2 循环结构
  • 原文地址:https://www.cnblogs.com/benbenjia/p/9371057.html
Copyright © 2011-2022 走看看