微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

c# – 在中心制作更新进度面板

我有关于更新进度面板的查询.
我想在屏幕中间放置更新进度面板!
任何人都可以建议我,这样做的想法是什么?

解决方法:

你可以用css做到这一点

<style type="text/css" media="screen">
/* commented backslash hack for ie5mac \*/ 
html, body{height:100%;} 
/* end hack */
.CenterPB{
position: absolute;
left: 50%;
top: 50%;
margin-top: -30px; /* make this half your image/element height */
margin-left: -30px; /* make this half your image/element width */
}
</style>

并且你在div中有进度条

<div class="CenterPB" style="height:60px;width:60px;" >Progress bar here</div>

参考:
http://www.sitepoint.com/forums/1243542-post9.html
http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐