<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # CSS3 text-overflow 屬性 ## 實例 使用 text-overflow 屬性: ``` div.test { text-overflow:ellipsis; } ``` 頁面底部有更多實例。 ## 瀏覽器支持 | IE | Firefox | Chrome | Safari | Opera | | --- | --- | --- | --- | --- | 所有主流瀏覽器都支持 text-overflow 屬性。 ## 定義和用法 text-overflow 屬性規定當文本溢出包含元素時發生的事情。 | 默認值: | clip | | --- | --- | | 繼承性: | no | | --- | --- | | 版本: | CSS3 | | --- | --- | | JavaScript 語法: | _object_.style.textOverflow="ellipsis" | | --- | --- | ## 語法 ``` text-overflow: clip|ellipsis|_string_; ``` | 值 | 描述 | 測試 | | --- | --- | --- | | clip | 修剪文本。 | [測試](/tiy/c.asp?f=css_text-overflow) | | ellipsis | 顯示省略符號來代表被修剪的文本。 | [測試](/tiy/c.asp?f=css_text-overflow&p=2) | | _string_ | 使用給定的字符串來代表被修剪的文本。 | ## 親自試一試 - 實例 [帶有 hover 效果的 Text-overflow](/tiy/t.asp?f=css3_text-overflow_hover) 本例演示當光標浮動到元素上時如何顯示全部文本。 ``` <!DOCTYPE html> <html> <head> <style> div.test { white-space:nowrap; width:12em; overflow:hidden; border:1px solid #000000; } div.test:hover { text-overflow:inherit; overflow:visible; } </style> </head> <body> <p>如果您把光標移動到下面兩個 div 上,就能夠看到全部文本。</p> <p>這個 div 使用 "text-overflow:ellipsis" :</p> <div class="test" style="text-overflow:ellipsis;">This is some long text that will not fit in the box</div> <p>這個 div 使用 "text-overflow:clip":</p> <div class="test" style="text-overflow:clip;">This is some long text that will not fit in the box</div> </body> </html> ``` ## 相關頁面 CSS3 教程:[CSS3 文本效果](/css3/css3_text_effect.asp "CSS3 文本效果")
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看