【发布时间】:2020-11-13 12:19:35
【问题描述】:
我想缩小患者是否吸烟和年龄问题的宽度。 这是我正在使用的 flask-wtforms 代码:
class UploadForm(FlaskForm):
upload = FileField('Select an image:', validators=[
FileRequired(),
FileAllowed(['jpg', 'png', 'jpeg', 'JPEG', 'PNG', 'JPG'], 'Images only!')
])
smoke = SelectField(
'Does the patient smoke?',
choices=[('Yes', 'Yes'), ('No', 'No')]
)
name = StringField('Age')
submit = SubmitField('Get Results')
在 HTML 中:
{{ wtf.quick_form(form) }}
但在移动设备上它并没有那么大,所以我需要减小宽度并仍然保持居中,但仅适用于笔记本电脑和计算机。
【问题讨论】: