markdown -webkit-滚动条

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown -webkit-滚动条相关的知识,希望对你有一定的参考价值。

<div class="container">
  <div class="contents">Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum nulla quia soluta adipisci exercitationem, cupiditate, nam totam asperiores perferendis distinctio eos dignissimos, recusandae animi dolor pariatur quidem quod obcaecati voluptatum Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi accusantium dolor amet eveniet dolore voluptatum quas! Similique, earum veritatis tenetur harum nesciunt recusandae corrupti voluptatem, eum, minima necessitatibus blanditiis assumenda!</div>
</div>
.container {
  overflow-x: auto;
  // -webkit-overflow-scrolling: touch; //iOSでは併用できない
  &::-webkit-scrollbar {
    height: .6em;
  }
  &::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: .3em;
  }
  &::-webkit-scrollbar-track-piece {
    background: #ddd;
  }
}


/***********************/
.container {
  width: 200px;
}
.contents {
  width: 300px;
}
-webkit-scrollbar
-----------------


A [Pen](https://codepen.io/takeshi_ymnk/pen/LXodaq) by [TAKESHI YAMANAKA](https://codepen.io/takeshi_ymnk) on [CodePen](https://codepen.io).

[License](https://codepen.io/takeshi_ymnk/pen/LXodaq/license).

以上是关于markdown -webkit-滚动条的主要内容,如果未能解决你的问题,请参考以下文章

转换rst到markdown总结

markdown [Markdown HowTo]作为Markdown语法的秘籍

python markdown干啥用的

markdown前端渲染

如何用markdown生成目录

markdown排版示例