如何隐藏 html 输入元素的标签
How to hide label of html input element
我试图隐藏 html 中输入元素的标签。
<input type="hidden" id="filex" name="filex" style="background-color:white">{{edit_card.id}}</input>
我正在尝试隐藏 {{edit_card.id}}
的值以防显示。
如何实现,谢谢!
在.html中添加:
style="display: none;"
或添加html标签:
<label hidden>{{edit_card.id}}</label>
或在 .css 文件中为 id='fillex' 的元素添加样式:
#fillex {display:none;}
{{edit_card.id}} 对用户不可见,但可通过鼠标右键单击访问 - 从浏览器检查。
我试图隐藏 html 中输入元素的标签。
<input type="hidden" id="filex" name="filex" style="background-color:white">{{edit_card.id}}</input>
我正在尝试隐藏 {{edit_card.id}}
的值以防显示。
如何实现,谢谢!
在.html中添加:
style="display: none;"
或添加html标签:
<label hidden>{{edit_card.id}}</label>
或在 .css 文件中为 id='fillex' 的元素添加样式:
#fillex {display:none;}
{{edit_card.id}} 对用户不可见,但可通过鼠标右键单击访问 - 从浏览器检查。