📜  css overflow smooth scroll mobile - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:56.603000             🧑  作者: Mango

代码示例1
div {
  width: 100%;
  overflow: auto;
}

p {
  width: 200%;
  background: #f5f9fa;
  border: 2px solid #eaf2f4;
  padding: 10px;
}

.scroll-touch {
  -webkit-overflow-scrolling: touch; /* Lets it scroll lazy */
}

.scroll-auto {
  -webkit-overflow-scrolling: auto; /* Stops scrolling immediately */
}