html+css3适合移动手机的侧边栏滑动代码

 时间:2024-10-26 18:13:48

1、新建html文档。

html+css3适合移动手机的侧边栏滑动代码

3、书写css样式。<style type="text/css">html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100% }body { margin: 0 }html, body { width: 100%; height: 100%; }body, .panel { background-color: #fff; }.menu { background-color: #1D1F20; background-image: linear-gradient(145deg, #1D1F20, #404348); }a { color: #4B5; text-decoration: none; }.menu a { color: #fff; }.menu a:hover { text-decoration: underline; }.menu-header-title { font-weight: 400; letter-spacing: 0.5px; margin: 0; }.menu-section { margin: 25px 0; }.menu-section-title { text-transform: uppercase; color: #85888d; font-weight: 200; font-size: 13px; letter-spacing: 1px; padding: 0 20px; margin: 0; }.menu-section-list { padding: 0; margin: 10px 0; list-style: none; }.menu-section-list a { display: block; padding: 10px 20px; }.menu-section-list a:hover { background-color: rgba(255, 255, 255, 0.1); text-decoration: none; }.panel { text-align: left; padding-top: 5px; min-height: 100%; }.slideout-menu { position: fixed; left: 0; top: 0; bottom: 0; right: 0; z-index: 0; width: 256px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: none; }.slideout-panel { position: relative; z-index: 1; }.slideout-open, .slideout-open body, .slideout-open .slideout-panel { overflow: hidden; }.slideout-open .slideout-menu { display: block; }</style>

html+css3适合移动手机的侧边栏滑动代码

6、查看效果。“未点击”

html+css3适合移动手机的侧边栏滑动代码
  • windows下selenium的安装教程
  • asp网站源码安装教程
  • jquery如何删除最后一个li元素
  • jQuery中如何使用 children方法?
  • 用Microsoft Office Visio画数据库E-R图
  • 热门搜索
    牛腩怎么做好吃 哈密瓜怎么切 怎么看黄片 睛怎么组词 为什么要结婚 端午节手抄报怎么画 无线网怎么安装 颁奖词怎么写 闾怎么读 谬怎么读