Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用以下方法使输入文本按钮不可见:
#blog_name { display: none; visibility: hidden; }
还有我的jQuery:
$('img#wp').click(function() { $('input#blog_name').show(); //show });
这是因为您visibility: hidden的 css 中有 jQuery 会更改display: none为display: block但不会更改可见性。所以它仍然是隐藏的。
visibility: hidden
display: none
display: block
示例http://jsfiddle.net/YXUVE/