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;