动画图像的css
|
我需要为图像创建CSS,即高度和宽度。如何创建?
<div id=\"toHide\" class=\"pb-text-align-center\">
<img src=\"img/load.gif\" style=\"margin-left: auto; margin-right: auto;\"/>
<form wicket:id=\"safeForm\" class=\"clearfix\" />
</div>
.pf-text-align-center, .pb-text-align-center { text-align: center; }
<script type=\"text/javascript\">
var $ = jQuery.noConflict();
$(\'#toHide\').doTimeout(1000, function() { $(\'#toHide\').find(\'#safeForm35\').submit();});
</script>
问题:IE中没有动态动画动作。它可以通过正确设置高度和宽度来解决。如何查看所需的高度和宽度?和其他细节?
编辑
回答:
HTML源代码:
<SCRIPT type=\"text/javascript\">
var $ = jQuery.noConflict();
document.getElementById(\'toHide\').style.display =\"\";
$(\'#toHide\').doTimeout(1000, function() {
$(\'#toHide\').find(\'#safeForm34\').submit();
document.getElementById(\'myAnimatedImage\').src = \"../../img/load.gif\";
});
</SCRIPT>
的HTML:
<div id=\"toHide\" class=\"pb-text-align-center\">
<img src=\"img/load.gif\" id=\'myAnimatedImage\' style=\"margin-left: auto; margin-right: auto;\"/>
<form wicket:id=\"safeForm\" class=\"clearfix\" />
</div>
没有找到相关结果
已邀请:
1 个回复
拭十年
属性在需要显示时加载图像,而不是预先加载并使其可见。 参考:http://www.norio.be/blog/2008/09/animated-gif-not-working-internet-explorer