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

      看看這些前端面試題,帶你搞定高頻知識(shí)點(diǎn)(五)

      看看這些前端面試題,帶你搞定高頻知識(shí)點(diǎn)(五)

      每天10道題,100天后,搞定所有前端面試的高頻知識(shí)點(diǎn),加油?。。?,在看文章的同時(shí),希望不要直接看答案,先思考一下自己會(huì)不會(huì),如果會(huì),自己的答案是什么?想過之后再與答案比對(duì),是不是會(huì)更好一點(diǎn),當(dāng)然如果你有比我更好的答案,歡迎評(píng)論區(qū)留言,一起探討技術(shù)之美。

      面試官:css 如何實(shí)現(xiàn)左側(cè)固定 300px,右側(cè)自適應(yīng)的布局?

      我:呃~,好的,可以采用flex布局,或者浮動(dòng)+BFC,整出代碼如下:

      flex布局

      <style>   *{margin: 0;padding: 0;}   .container{     display: flex;    }   .left{     width: 300px;     height: 100vh;     background-color: #f00;   }   .main{     flex: 1;     background-color: #ae5aca;    } </style> <body>   <div class="container">     <div class="left"></div>     <div class="main"></div>   </div> </body>
      登錄后復(fù)制

      浮動(dòng)+BFC

      <style>   *{margin: 0;padding: 0;}   .container {     height: 100vh;   }   .left {     float: left;     width: 300px;     height: 100%;     background-color: #f00;   }   .main {     height: 100%;     background-color: #ae5aca;     overflow: hidden;   } </style> <body>   <div class="container">     <div class="left"></div>     <div class="main"></div>   </div> </body>
      登錄后復(fù)制

      看看這些前端面試題,帶你搞定高頻知識(shí)點(diǎn)(五)

      面試官:flex 布局中 align-content 與 align-items 有何區(qū)別?

      我:呃~,它們都是作用于縱軸的元素,具體區(qū)別如下:

      align-content:作用于縱軸多行元素,一行元素不起作用?!?/p>

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