久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      JS中行內(nèi)style怎么寫?

      行內(nèi)style的寫法為:1、對復(fù)合屬性的寫法是去掉中間的“—”,并將第二個單詞大寫,代碼為【alert(box.style.color)】;2、float是關(guān)鍵字有特殊寫法,代碼為【alert(box.style.float)】。

      JS中行內(nèi)style怎么寫?

      JS中行內(nèi)style的寫法為:

      1、訪問元素樣式1, stye屬性只對行內(nèi)樣式有用

      var box = document.getElementById("box");

      2、對復(fù)合屬性的寫法是去掉中間的“—”,并將第二個單詞大寫。

       // alert(box.style.color);     // alert(box.style.fontSize);

      3、float是關(guān)鍵字,因此最好不要這樣寫    

       //alert(box.style.float);

      4、對float屬性ie和非ie有差異:

       // alert(box.style.cssFloat); //非ie     // alert(box.style.styleFloat); //IE專用

      5、給float賦值,且兼容所有瀏覽器  

       // typeof box.style.cssFloat !="undefined"?box.style.cssFloat = "right":box.style.styleFloat ="right";

      相關(guān)學(xué)習(xí)推薦:javascript視頻教程

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