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

  • 相关阅读:
    递归——8月4日
    练习:结构体、枚举类型——8月3日
    结构体、枚举类型——8月3日
    数组——7月25日
    类的复习——7月25日
    异常保护——7月25日
    类以及练习——7月25日
    javase学习小结二
    javase学习小结一
    产生随机数的方法
  • 原文地址:https://www.cnblogs.com/applesuch5/p/1376518.html
Copyright © 2011-2022 走看看