调整打印样式

This commit is contained in:
Yang
2018-02-04 18:08:03 +08:00
parent 6c9fce2881
commit 4b71e58ded
+14 -1
View File
@@ -12,7 +12,7 @@
</h4>
</div>
</header>
<div style="display: flex; just-content: ">
<div style="display: flex; justify-content: space-between;">
<Tree class="tree" v-model="file"></Tree>
<Editor ref="editor" class="editor" v-model="value"></Editor>
<XView class="view" :value="value"></XView>
@@ -117,4 +117,17 @@ export default {
max-width: 900px;
margin: 0 auto;
}
@media print {
.editor, .header, .tree {
display: none;
}
.view.markdown-body {
min-width: 100%;
max-width: 100%;
width: 100%;
height: auto;
}
}
</style>