久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      css3怎么讓字體不換行

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

      css3怎么讓字體不換行

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

      css3怎么讓字體不換行

      在css中,可以使用white-space屬性來(lái)強(qiáng)制文字不換行;通常我們使用white-space:nowrap來(lái)強(qiáng)制文本文字內(nèi)容不換行,文本會(huì)在在同一行上顯示,直到遇到 <br> 標(biāo)簽為止。

      white-space屬性設(shè)置或檢索對(duì)象內(nèi)文本顯示方式。

      語(yǔ)法:

      white-space : normal | nowrap;

      屬性值:

      • normal:默認(rèn)??瞻讜?huì)被瀏覽器忽略。

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

      示例:

      <!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>內(nèi)容將會(huì)不被換行顯示</div> <div class="demo">內(nèi)容將在一行內(nèi)強(qiáng)制顯示完整</div> </body> </html>

      效果圖:

      css3怎么讓字體不換行

      (學(xué)習(xí)視頻分享:css視頻教程)

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