在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/HTML/ overflow-x:hidden y 方向?yàn)槭裁匆?hidden?

overflow-x:hidden y 方向?yàn)槭裁匆?hidden?

http://js.jirengu.com/naroyir...

為什么父元素設(shè)置了 overflow-x:hidden,但是 y 方向超出的部分也會(huì) hidden

<div class='demo'></div>
div{
  width: 64px;
  height: 30px;
  background: #d9dadb;
  position: relative;
  overflow-x: hidden;
}
div::after {
    content: '';
    position: absolute;
    height: 36px;
    width: 44px;
    background: #676b6f;
    top: -3px;
    left: 10px;
    transition: transform 0.5s ease;
/*     animation: 1s swapHor infinite; */
  }

@keyframes swapHor {
  0% {transform: translate3d(0px, 0px, 0px) scale(1);opacity: 1;}
  100% {transform: translate3d(-45px, 0px, 0px) scale(0.6);opacity: 0}
}
回答
編輯回答
荒城

并不是hidden而是scroll出現(xiàn)滾動(dòng)條但是高太小了 所有滾動(dòng)條沒(méi)顯示完整
單一的設(shè)置overflow-x或者overflow-y確實(shí)會(huì)影響影響另一個(gè)
你可以嘗試下面鏈接改變單一的x或y另一方會(huì) 會(huì)出現(xiàn)默認(rèn)變成scroll
overflow-x
overflow-y

2017年1月5日 17:25