diff --git a/src/css/modules/code.css b/src/css/modules/code.css index 348a8e61..06ea288b 100644 --- a/src/css/modules/code.css +++ b/src/css/modules/code.css @@ -35,7 +35,7 @@ html #layuicss-skincodecss{display:none; position: absolute; width:1989px;} .layui-code-preview > .layui-code > .layui-code-title{display: none;} .layui-code-preview .layui-code-item{display: none;} .layui-code-preview .layui-code-view > .layui-code-ol > li{} -.layui-code-item-preview{position: relative; padding: 16px;} +.layui-code-item-preview{position: relative; padding: 16px;overflow-y: auto;} .layui-code-item-preview > iframe{position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;} /* 工具栏 */ @@ -57,4 +57,4 @@ html #layuicss-skincodecss{display:none; position: absolute; width:1989px;} .layui-code-full .layui-code-item{width: 100% !important; border-width: 0 !important; border-top-width: 1px !important;} .layui-code-full .layui-code-item, .layui-code-full .layui-code-ol, -.layui-code-full .layui-code-ul{height: calc(100vh - 51px) !important; box-sizing: border-box;} \ No newline at end of file +.layui-code-full .layui-code-ul{height: calc(100vh - 51px) !important; box-sizing: border-box;}