mirror of
https://gitee.com/ulthon/layui-ul.git
synced 2026-07-05 20:02:49 +08:00
修复页面过宽
This commit is contained in:
@@ -333,8 +333,8 @@
|
||||
|
||||
}).mount(elem)
|
||||
})
|
||||
|
||||
$('.code-preview').css('width', $('.main-content').width() + 'px')
|
||||
console.log($('.main-content').width());
|
||||
$('.code-preview').css('width', 'calc('+$('.main-content').width() + 'px - 1em - 3.8em)')
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user