We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
http://developer.yahoo.com/yui/examples/container/panel -loading.html
幸运的是我已经在使用 YUI,只是忽略了这一点。正是我想要的。
http://developer.yahoo.com/yui/examples/container/panel-loading.html
Luckily I'm using YUI already, just overlooked this. Exactly what I want.
我认为只添加覆盖 div 会比使用任何库更容易并且需要更少的代码。
I think just add overlay div would be easier and requires less code, than using any library.
您可以仅使用 CSS 来实现这一点,并使用覆盖 div 绝对定位于其容器的顶部、左侧、右侧、底部 0,如下所示:
HTML
CSS
演示 < a href="http://jsfiddle.net/andresilich/WHEK3/4/" rel="nofollow">http://jsfiddle.net/andresilich/WHEK3/4/
You can pull that off with just CSS with an overlay div that is absolutely positioned top, left, right, bottom by 0 of its container, like so:
HTML
CSS
Demo http://jsfiddle.net/andresilich/WHEK3/4/