yanyan 1 year ago
parent
commit
7bfb62f60f
  1. 10
      src/views/common/pdfvVew.vue

10
src/views/common/pdfvVew.vue

@ -57,12 +57,12 @@ export default {
<style scoped> <style scoped>
.m-pdf{ .m-pdf{
//height: 100%; //height: 100%;
width: 100vw; position: fixed;
height: 100vh; top: 0;
bottom: 0;
right: 0;
left: 0;
} }
// 方法1:使用vw和vh视窗单位,1vw=视窗宽度的1%;1vh=视窗高度的1%
// width: 100vw;
// height: 100vh;
</style> </style>

Loading…
Cancel
Save