fix(tabs): 修复 box-sizing 对主体区域中其他组件的样式影响 (#2622)

This commit is contained in:
贤心 2025-04-13 23:47:35 +08:00 committed by GitHub
parent 4a3be7b793
commit 4ddbf1d7cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -1296,7 +1296,6 @@ body .layui-table-tips .layui-layer-content{background: none; padding: 0; box-sh
/* Tabs 标签页 */
.layui-tabs{position: relative;}
.layui-tabs *{box-sizing: border-box;}
.layui-tabs.layui-hide-v{overflow: hidden;}
.layui-tabs-header{position: relative; left: 0; height: 40px; padding: 0 !important; white-space: nowrap; font-size: 0; transition: all .16s; -webkit-transition: all .16s;}
.layui-tabs-header:after,

View File

@ -563,7 +563,7 @@ layui.define('component', function(exports) {
// 滚动结构
var rollElem = {
elem: $('<div class="'+ CLASS_SCROLL +' layui-unselect"></div>'),
elem: $('<div class="'+ CLASS_SCROLL +' layui-border-box layui-unselect"></div>'),
bar: $([
'<div class="'+ CLASS_BAR +'">',
'<i class="layui-icon '+ CLASS_BAR_ICON[0] +'" lay-mode="prev"></i>',