position: sticky to bottom left

前端 未结 6 983
名媛妹妹
名媛妹妹 2021-01-04 00:57

I have just been playing around in FF32 & Safari 7, with position: sticky. And it works perfecly with top: 0px or left: 0px (to st

6条回答
  •  时光说笑
    2021-01-04 01:32

    body {
      min-width: 600px;
      min-height: 400px;
    }
    
    .container {
      background-color: #9588c170;
      /* , */
      position: absolute;
      width: 100%;
      height: 100%;
      /* overflow: scroll; */
      overflow: auto;
    }
    
    .sticky {
      width: 300px;
      height: 200px;
      background-color: #9588c1;
      /* , */
      position: sticky;
      left: 1000px;
      top: 900px;
    }
    div

提交回复
热议问题