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

      vue如何動(dòng)態(tài)增加css

      vue如何動(dòng)態(tài)增加css的方法是:1、在元素中綁定動(dòng)態(tài)樣式,語(yǔ)法“<div class="名稱" :class="css樣式名">”;2、在data中定義數(shù)據(jù)對(duì)象;3、在css中寫樣式。

      vue如何動(dòng)態(tài)增加css

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

      第一步:在元素中綁定動(dòng)態(tài)樣式

      1.添加單個(gè)樣式

      <div class="addInvTitle" :class="lightBlue">

      2.添加多個(gè)樣式

      <div id="addInvite" class="addInvite" :class="[addInviteHeight1, addInviteHeight2]">

      第二步:data中定義數(shù)據(jù)對(duì)象

      data: {     addInviteHeight1: '', // 彈框的高度     addInviteHeight2: '', // 彈框的高度     lightBlue: 'lightBlue',  // lightBlue是css中定義的樣式名 }

      第三步:在css中寫樣式

      .addInviteHeight1 { height: 52.5rem; } .addInviteHeight1 { height: 48rem; } .lightBlue { background-color: #6e9dd3; }

      【推薦學(xué)習(xí):javascript高級(jí)教程】

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