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控制换行

  • 相关阅读:
    EF初始化mysql数据库codefirst
    css盒子模型、文档流、相对与绝对定位、浮动与清除模型
    微信群打卡机器人XiaoV项目开源 | 蔡培培的独立博客
    关于12306Bypass-分流抢票
    剑指Offer刷题总结
    写在前面
    mysql/mongo/nginx手册整理(2021版)
    linux(centos7) 查看磁盘空间大小
    vue中axios.post的复杂参数传参不支持的解决办法
    webApi跨域Cross问题的简单解决
  • 原文地址:https://www.cnblogs.com/applesuch5/p/1376518.html
Copyright © 2011-2022 走看看