I follow the relevant API for the combination of columns and container methods, but when I added an image, the image displayed in the page is ghosted, but when the mouse is placed on the image, the ghosting disappears, how to deal with that?
my code:
col1, col2 = st.columns((3, 1.3))
with col2:
st.markdown(
f"""
<div style="margin-bottom: 0; font-size: 28px; font-weight: bold; font-family: 宋体, sans-serif;color:white;">电影简介:</div>
<div style="overflow-y: scroll; color:white; font-family: 宋体; height: 150px; border: 1px solid rgba(49, 51, 63, 0.1); border-radius: 1rem; padding: calc(1em - 1px); background-color: rgba(255, 255, 255, 0.2);">
<p style="margin-bottom: 0;">{induction}</p>
</div>
""",
unsafe_allow_html=True
)
st.divider()
st.markdown(
f"""
<div style="margin-bottom: 0; font-size: 28px; font-weight: bold; font-family: 宋体, sans-serif;color:white;">猜你喜欢:</div>
</div>
""",
unsafe_allow_html=True
)
row1 = st.columns(3)
for col in row1:
tile = col.container(height=150)
tile.image("images/hot.jpg", use_column_width=True)
version:
python-3.9
streamlit-1.32.2
The code does not show any errors
my web-page shows like…