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

      css如何去掉背景色

      在css中,可以使用“background-color:transparent”語句去掉背景顏色;當背景色設置為transparent時,只會將元素的背景色設為透明,元素里面的其他元素或內(nèi)容并不會受到影響。

      css如何去掉背景色

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

      transparent 值

      盡管在大多數(shù)情況下,沒有必要使用 transparent。不過如果您不希望某元素擁有背景色,同時又不希望用戶對瀏覽器的顏色設置影響到您的設計,那么設置 transparent 值還是有必要的。

      示例:

      <html> <head> <style type="text/css"> body {     background-color: yellow } h1 {     background-color: #00ff00 } h2 {     background-color: transparent } p {     background-color: rgb(250,0,255) } p.no2 {     background-color: gray;      padding: 20px; } </style> </head>  <body> <h1>這是標題 1</h1> <h2>這是標題 2</h2> <p>這是段落</p> <p class="no2">這個段落設置了內(nèi)邊距。</p> </body> </html>

      結(jié)果:

      css如何去掉背景色

      推薦學習:css視頻教程

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