流线型版本:1.13.0
中Homepage.py:
import streamlit as st
st.set_page_config(
page_title= "Multipage App",
page_icon="📁")
st.title("Main Page")
st.markdown('<style>div[class="css-6qob1r e1fqkh3o3"] {color:black; font-weight: 900; background: url("https://media2.giphy.com/media/46hpy8xB3MiHfruixn/giphy.gif");background-repeat: no-repeat;background-size:350%;} </style>', unsafe_allow_html=True)
st.markdown('<style>div[class="css-y3drt2 e1fqkh3o5"] {color:red; } </style>', unsafe_allow_html=True)#NOT WORKING-------------------------------------------
我想更改主页、应用程序和联系人文本的颜色、字体和位置。如何操作?
1条答案
按热度按时间3qpi33ja1#
您可以使用via inline CSS and st.markdown来执行此操作,尽管它确实有些笨拙。