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

      react中如何引入樣式

      react中引入樣式的方法:1、模塊樣式,引入方式【import './index.css';】;2、行內(nèi)樣式,代碼為【<Divider style={{margin:'0px'}}/>】。

      react中如何引入樣式

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

      本教程操作環(huán)境:windows7系統(tǒng)、React17版,該方法適用于所有品牌電腦。

      react中引入樣式的方法:

      1、模塊樣式

      在剛開始構(gòu)建好框架的時候,準(zhǔn)備開始寫業(yè)務(wù),在第一個頁面的時候就會碰到怎么引入樣式的問題,踩過一些坑,不是使用style,頭部也不需要另外取名,直接引入css就可以,引入方式是這樣

      <div className='topHead back fs14'>      <img src='/images/highLevel.png' className='levelSize'/> </div>

      使用className的形式

      引入方式

      import './index.css';

      index.css

      @import '~antd/dist/antd.css'; .topHead {     width: 100%;     height: 100px;     display: flex;       align-items: center; } .back{     background-image: url('/images/homeBackImg.png'); } .levelSize{     width: 80px;     height: 80px;  } .levelColor{     color:#ffffff; }

      2、行內(nèi)樣式

      行內(nèi)樣式跟平常的style='margin:0px'不太一樣,要這樣

       <Divider style={{margin:'0px'}}/> 也是用的style,但書寫方式不一樣了

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

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