样式微调,预览高度修复

This commit is contained in:
fen 2013-11-26 16:39:14 +08:00
parent 5692ff5cb1
commit 95090003ee
3 changed files with 7 additions and 5 deletions

View File

@ -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; }

View File

@ -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;
});

View File

@ -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;