久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網
      最全最豐富的資訊網站

      css3怎么讓字體不換行

      在css3中,可以利用“white-space”屬性讓字體不換行,該屬性用于處理元素內的空白,當屬性值設置為“nowrap”時,字體文本不會換行,會在在同一行上繼續(xù),直到遇到換行標簽為止,語法為“white-space:nowrap”。

      css3怎么讓字體不換行

      本教程操作環(huán)境:windows10系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

      css3怎么讓字體不換行

      在css中,可以使用white-space屬性來強制文字不換行;通常我們使用white-space:nowrap來強制文本文字內容不換行,文本會在在同一行上顯示,直到遇到 <br> 標簽為止。

      white-space屬性設置或檢索對象內文本顯示方式。

      語法:

      white-space : normal | nowrap;

      屬性值:

      • normal:默認??瞻讜粸g覽器忽略。

      • nowrap:文本不會換行,文本會在在同一行上繼續(xù),直到遇到 <br> 標簽為止。

      示例:

      <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style type="text/css"> div { width: 120px; height: 60px; line-height: 20px; border: 1px dashed #ccc; margin: 10px; } .demo { white-space: nowrap } </style> </head> <body> <div>內容將會不被換行顯示</div> <div class="demo">內容將在一行內強制顯示完整</div> </body> </html>

      效果圖:

      css3怎么讓字體不換行

      (學習視頻分享:css視頻教程)

      贊(0)
      分享到: 更多 (0)
      網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號