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.
我想以编程方式加载 facebox,它应该显示 div 的内容,如下所示:
$.facebox({ div: '#inline_demo' });
问题是隐藏的 div 中有一个 600x600 的图像,它将显示在 facebox 上。所以浏览器显示出很大的差距,滚动条向上移动,就好像那里有内容一样。该 div 的溢出设置为隐藏,但仍然如此。
有人可以帮忙吗?非常感谢
怎么用display:none?
display:none
然后display:block在激活时将其更改为...
display:block