滚动条Scrollbar
为内容主体空间添加data-scrollbar属性,并对其限制高度height或max-height
<div style="max-height:150px" data-scrollbar>
<p>Content</p>
</div>
可以为任意组件的主体空间来添加滚动条
<div class="panel">
<div class="title">Panel Default</div>
<div class="content" style="max-height:150px" data-scrollbar>Content</div>
</div>
反色Inverse
添加data-scrollbar="inverse"属性转换为反色效果
<div style="background-color:#333;color:#ccc;">
<div style="max-height:150px;padding:1rem;" data-scrollbar="inverse">
<p>Content<p>
</div>
</div>
当前内容版权归 diquick.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 diquick.com .