How to apply standby.show to the full body of html

邮差的信 提交于 2019-12-11 02:43:29

问题


I would like to know how to apply standby.show to the full body of html?

I tried applying it but it does not work.

regards Clement


回答1:


set the target of the standby widget to document body.

require([ "dojox/widget/Standby" ], function(st) {
                var standby = new st({
                    id : "StandyBy1",
                    target : dojo.body(),
                });
                document.body.appendChild(standby.domNode);
                standby.startup();
                standby.show();

            });



回答2:


At first have a look here for using standby : http://dojotoolkit.org/reference-guide/1.9/dojox/widget/Standby.html#dojox-widget-standby

then i would say it's enough to set the width and height of your div ( you use a div for this right? ) up to 100% to make it fit to the screen.

For more information and better support add some code to your post!

Regards



来源:https://stackoverflow.com/questions/18305983/how-to-apply-standby-show-to-the-full-body-of-html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!