更改页面背景图 #235
Unanswered
rattlesnakey
asked this question in
Q&A
更改页面背景图
#235
Replies: 1 comment 1 reply
-
需要自定义css: css = """
body {
background-image: url(https://cdn.jsdelivr.net/gh/wang0618/pywebio-chart-gallery/assets/bokeh.png);
background-size: 100% 100%;
background-repeat: no-repeat;
background-attachment: fixed;
}
"""
@config(css_style=css)
def main():
put_text('Hello') |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
你好,请问下怎么更改页面的背景图呢?
谢谢
Beta Was this translation helpful? Give feedback.
All reactions