fix: 🐛 内嵌文档混合模式出现外部滚动条问题修复
Former-commit-id: 2bcd95236d8a3b4d4bbfb277c383881280c36d80
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts"></script>
|
||||
<template>
|
||||
<div class="iframe-wrap">
|
||||
<div class="app-container">
|
||||
<iframe
|
||||
src="https://juejin.cn/post/7228990409909108793"
|
||||
frameborder="0"
|
||||
@@ -8,14 +7,22 @@
|
||||
</div>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
.iframe-wrap {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
/** 关闭tag标签 */
|
||||
.app-container {
|
||||
/* 50px = navbar = 50px */
|
||||
height: calc(100vh - 50px);
|
||||
}
|
||||
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
/** 开启tag标签 */
|
||||
.hasTagsView {
|
||||
.app-container {
|
||||
/* 84px = navbar + tags-view = 50px + 34px */
|
||||
height: calc(100vh - 84px);
|
||||
}
|
||||
}
|
||||
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user