zoukankan      html  css  js  c++  java
  • something about table

    <table width="600px" border="1px" cellpadding='0' cellSpacing="0" bordercolor="red" style="table-layout:fixed;word-

    break:break-all">
    <tr>
    <td width="100px">sfsa11111111111111111111111111111111111111111</td>
    <td width="100px">fa</td>
    <td width="400px">fasdfas</td>
    </tr>
    </table>
    <p></p>
    <table width="600px" border="1px" cellpadding='0' cellSpacing="0" bordercolor="red" style="table-layout:fixed;word-

    break:normal">
    <tr>
    <td width="100px">sfsa111111看了了了聊聊 聊聊了聊聊了1111111聊聊1111111111了聊聊11111111聊聊1111111111聊</td>
    <td width="100px">fa</td>
    <td width="400px">fasdfas</td>
    </tr>
    </table>
    <p></p>
    <table width="600px" border="1px" cellpadding='0' cellSpacing="0" bordercolor="red" style="table-layout:fixed;word-

    break:keep-all">
    <tr>
    <td width="100px">sfsa1111111111看了了了聊聊 聊聊了聊聊了1111111111111111111111111111111</td>
    <td width="100px">fa</td>
    <td width="400px">fasdfas</td>
    </tr>
    </table>
    <p></p>

    <table width="600px" border="1px" cellpadding='0' cellSpacing="0" bordercolor="red" style="table-layout:fixed;word-

    wrap:break-word">
    <tr>
    <td width="100px">sfsa111看了了了聊聊 聊聊了聊聊了11111111111111111111111111111111111111</td>
    <td width="100px">fa</td>
    <td width="400px">fasdfas</td>
    </tr>
    </table>
    <p></p>
    <table width="600px" border="1px" cellpadding='0' cellSpacing="0" bordercolor="red" style="table-layout:fixed;word-

    wrap:normal">
    <tr>
    <td width="100px">一位老Lola了了聊聊了聊聊了</td>
    <td width="100px">fa</td>
    <td width="400px">fasdfas</td>
    </tr>
    </table>
    <p></p>

    table-layout:fixed,控制行宽不变
    word-break:控制可以换行
    word-wrap:break-word控制换行

  • 相关阅读:
    从零开始山寨Caffe·拾:IO系统(三)
    从零开始山寨Caffe·玖:BlobFlow
    从零开始山寨Caffe·捌:IO系统(二)
    从零开始山寨Caffe·柒:KV数据库
    从零开始山寨Caffe·陆:IO系统(一)
    从零开始山寨Caffe·伍:Protocol Buffer简易指南
    js实现hash
    编程词汇
    开发技术文档汇总
    前端开发者进阶之函数反柯里化unCurrying
  • 原文地址:https://www.cnblogs.com/applesuch5/p/1376518.html
Copyright © 2011-2022 走看看