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(护理记录单))
  • 相关阅读:
    CentOS查找目录或文件
    vim使用
    解决Bat脚本中包含中文,运行乱码
    Window系统下搭建GIT本地服务器
    Django1.6 运行manage.py 报错解决办法(ImportError)
    centos7下使用yum安装pip
    hiho_1048_状态压缩2
    hiho_1044 状态压缩
    hiho_1041 国庆出游
    hdu_3555 bomb
  • 原文地址:https://www.cnblogs.com/benbenjia/p/9371057.html
Copyright © 2011-2022 走看看