亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在Firefox和Chrome 48中使用flexbox出現渲染問題

在Firefox和Chrome 48中使用flexbox出現渲染問題

人到中年有點甜 2019-11-20 14:56:45
在chrome 47上(正確的行為): 在chrome 47上,div .scroll正確滾動,使用flex調整高度為100%。在Firefox(錯誤行為)上: 在Firefox上,與div一起.scroll使用的是內容高度,并且滾動不正確??鐬g覽器解決此問題的方法是什么?http://jsfiddle.net/d4nkevee/for (var i = 0; i < 100; i++)  $(".scroll").append("Dynamic content<br>");body,html {  margin: 0;  padding: 0;}.container {  box-sizing: border-box;  position: absolute;  height: 100%;  width: 100%;  display: flex;  flex-direction: column;}.content {  background: yellow;  flex: 1;  display: flex;  flex-direction: column;}.scroll {  flex: 1 1 auto;  overflow: scroll;}<div class="container">    <div class="bar">Small</div>    <div class="content">        <div>Static content</div>    <div class="scroll"></div>    <div>Static content</div>      </div>    <div class="footer">Small</div>  </div>
查看完整描述

2 回答

  • 2 回答
  • 0 關注
  • 825 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號