| | |
| | | <template> |
| | | <div class="iframe-container"> |
| | | <iframe :src="iframeSrc" class="iframe-content"></iframe> |
| | | <div class="iframe-container"> |
| | | <iframe :src="iframeSrc" class="iframe-content" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | // iframeSrc: 'https://www.baidu.com/index.htm' |
| | | iframeSrc: 'http://114.116.101.63:30800/' |
| | | }; |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | // iframeSrc: 'https://www.baidu.com/index.htm' |
| | | // iframeSrc: 'http://114.116.101.63:30800/' |
| | | iframeSrc: 'https://www.yhzhg.cn/' |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | .iframe-container { |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: hidden; /* 隐藏外部容器的滚动条 */ |
| | | } |
| | | |
| | | .iframe-content { |
| | | width: 100%; |
| | | height: 100%; |
| | | border: none; |
| | | overflow: auto; /* 保留 iframe 的滚动条 */ |
| | | } |
| | | </style> |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .iframe-container { |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: hidden; /* 隐藏外部容器的滚动条 */ |
| | | } |
| | | |
| | | .iframe-content { |
| | | width: 100%; |
| | | height: 100%; |
| | | border: none; |
| | | overflow: auto; /* 保留 iframe 的滚动条 */ |
| | | } |
| | | </style> |