zoukankan      html  css  js  c++  java
  • word-break

    1.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="Overflowing_content.css">
    <title>Title</title>
    </head>
    <body>


    <p>1. <code>word-break: normal</code></p>
    <p class="normal narrow">This is a long and
    Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu
    グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉</p>

    <p>2. <code>word-break: break-all</code></p>
    <p class="breakAll narrow">This is a long and
    Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu
    グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉</p>

    <p>4. <code>word-break: break-word</code></p>
    <p class="breakWord narrow">This is a long and
    Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu
    グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉</p>

    </body>
    </html>


    2.css

    .narrow {
    padding: 10px;
    border: 1px solid;
    500px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 1px;
    }

    .normal {
    word-break: normal;
    }

    .breakAll {
    word-break: break-all;
    }

    .breakWord {
    word-break: break-word;
    }


  • 相关阅读:
    C博客作业01分支、顺序结构
    C语言博客作业03函数
    AVR速度很快功能挺强
    盗取账户密码的代码,额,囧
    ANSI,ASCII,Unicode的区别与联系
    DIV特效汇
    IAR for AVR 学习笔记
    PLSQL Developer连接Oracle10g失败
    vs2008 framework 当前不会命中断点 还没有为该文档加载任何符号
    UDP协议
  • 原文地址:https://www.cnblogs.com/pascal1000/p/12965242.html
Copyright © 2011-2022 走看看