From 95090003ee745d221d406d7452d5917589641bc4 Mon Sep 17 00:00:00 2001 From: fen Date: Tue, 26 Nov 2013 16:39:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83=EF=BC=8C?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E9=AB=98=E5=BA=A6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/css/style.css | 5 +++-- admin/editor-js.php | 2 +- admin/scss/components/_editor.scss | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/admin/css/style.css b/admin/css/style.css index 61cae7d1..7281cedf 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -1200,12 +1200,13 @@ a.operate-reply { .wmd-edittab { float: right; - margin-top: 5px; + margin-top: 3px; font-size: .92857em; } .wmd-edittab a { display: inline-block; - padding: 0 10px; + padding: 0 8px; margin-left: 5px; + height: 20px; line-height: 20px; } .wmd-edittab a:hover { text-decoration: none; } diff --git a/admin/editor-js.php b/admin/editor-js.php index 304d75e9..15739293 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -211,7 +211,7 @@ $(document).ready(function () { selected_el = $(selected_tab).removeClass("wmd-hidetab"); // 预览和编辑窗口高度一致 - $("#wmd-preview").height($("#text").innerHeight()); + $("#wmd-preview").outerHeight($("#wmd-editarea").innerHeight()); return false; }); diff --git a/admin/scss/components/_editor.scss b/admin/scss/components/_editor.scss index e4aac519..5204b336 100644 --- a/admin/scss/components/_editor.scss +++ b/admin/scss/components/_editor.scss @@ -42,12 +42,13 @@ // 撰写预览切换 tab .wmd-edittab { float: right; - margin-top: 5px; + margin-top: 3px; font-size: .92857em; a { display: inline-block; - padding: 0 10px; + padding: 0 8px; margin-left: 5px; + height: 20px; line-height: 20px; &:hover { text-decoration: none;