我有一个带有页面加载隐藏可见性的标签。我怎样才能使它可见使用jQuery使用jquery更改标签标签的可见性
<label for="error" style="margin:100px auto 60px auto;color:Red; line-height:40px;font-size:medium;visibility:hidden">error occured</label>
我可以隐藏它。
$('label[for="error"]').hide();
这不起作用
$('label[for="error"]').show();
只是猜测,但尝试显示:无;而不是可见性:隐藏; – Rake36
当你说隐藏的知名度,你的意思是'display:none'? – Oriol
这或者它有可能显示,但隐藏在别的东西后面。 – runspired