• 前端滚动条的样式


    一、滚动条

    滚动条是对于固定高度,当内容溢出的时候,出现滚动条。

    默认的滚动样式:

    我们可以进行滚动条的定义

    css 样式:

     1 <style>
     2 .inner{
     3              265px;
     4             height: 400px;
     5             position: absolute;
     6             top: 33px;
     7             left: 13px;
     8             /*cursor: pointer;*/
     9             overflow:hidden;
    10         }
    11         .innerbox{
    12             overflow-x: hidden;
    13             overflow-y: auto;
    14             color: #000;
    15             font-size: .7rem;
    16             font-family: "5FAE8F6F96C59ED1",Helvetica,"黑体",Arial,Tahoma;
    17             height: 100%;
    18         }
    19         /*滚动条样式*/
    20         .innerbox::-webkit-scrollbar {/*滚动条整体样式*/
    21              13px;     /*高宽分别对应横竖滚动条的尺寸*/
    22             height: 4px;
    23         }
    24         .innerbox::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    25             border-radius: 5px;
    26             -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
    27             background: #A9A9A9;
    28         }
    29         .innerbox::-webkit-scrollbar-track {/*滚动条里面轨道*/
    30             -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
    31             border-radius: 0;
    32             background: white;
    33         }
    34 
    35 </style>

     html:

    1 <div class="inner" ">
    2     <div class="innerbox">
    3         <p style="height:200px;">111</p>
    4         <p style="height:400px;">222</p>
    5         <p>333</p>
    6     </div>
    7 </div
  • 相关阅读:
    js原型链
    charles重放攻击2
    charles攻击重放测试网页
    js逆向基础知识
    js重放攻击
    js逆向之 中间人攻击-js注入
    修改jadx默认内存
    frida-ida hook操作
    关于ios 9系统完全越狱frida安装不上的的问题
    IDA 静态调试和动态调试
  • 原文地址:https://www.cnblogs.com/evilliu/p/9178067.html
Copyright © 2020-2023  润新知