Nice / pages /iframe.py
betterme
update
b966bc9
raw
history blame
587 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : AI. @by PyCharm
# @File : iframe
# @Time : 2023/4/6 11:43
# @Author : betterme
# @WeChat : meutils
# @Software : PyCharm
# @Description :
from meutils.pipe import *
html = """
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
<style>
iframe {
width: 100%;
height: 100%;
border: none;
overflow: hidden;
}
</style>
</head>
<body>
<iframe src="http://www.hao123.com/"></iframe>
</body>
</html>
"""
import streamlit as st
st.write(html, unsafe_allow_html=True)