我正在尝试使用 CSS 将 st.text_area 自定义为特定的宽度和高度 - 但是,它对宽度和高度的更改没有响应。我可以尝试其他方法吗?
def main():
# Custom CSS to modify the textarea width and height
custom_css = '''
'''
st.write(custom_css, unsafe_allow_html=True)
st.title("Custom Textarea Width and Height")
user_input = st.text_area("Type your text here:")
st.subheader("You typed:")
st.write(user_input)
if __name__ == "__main__":
main()
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号