From 51af63718b044bfaa9a4b6369e8244952fff3f32 Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 18 Jul 2023 15:31:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2=E8=BF=87?= =?UTF-8?q?=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/index/index/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/index/index/index.html b/view/index/index/index.html index 71f53d9..e61ab48 100644 --- a/view/index/index/index.html +++ b/view/index/index/index.html @@ -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)')