*新闻详情页*/>
实际编码以下所示:
<style> #toastLoaderFullScreen { height: 100%; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999; background-color: rgba(224, 38, 38, 0.5); } #toastLoader { position: absolute; left: 50%; top: 45%; width: 350px; margin-left: ⑴9px; /* background-color: blue; */ } #toastLoaderText { position: fixed; top: 53%; left: 50%; width: 250px; margin-top: ⑴0px; margin-left: ⑴25px; word-wrap:break-word; /*全自动换行*/ text-align: center; /* background-color: red; */ } </style> <template> <div id="toastLoaderFullScreen"> <div> <mu-circular-progress id="toastLoader" :size="40" color="rgb(24, 143, 254)" v-show="isToastLoader"></mu-circular-progress> <div id="toastLoaderText"> <p>正在登陆中</p> </div> </div> </div> </template> <script> export default { data() { return { isToastLoader: true } }, created() { // setTimeout(() => { // this.isToastLoader = false // }, 2000) }, methods: { } } </script>
总结
以上所述是网编给大伙儿详细介绍的css遮罩全屏垂直居中对齐的完成方法,期待对大伙儿有一定的协助,假如大伙儿有任何疑惑请给我留言,网编会立即回应大伙儿的。在此也十分谢谢大伙儿对脚本制作之家网站的适用!
Copyright © 2002-2020 快速建站_网站建设系统_免费网页建站_网站免费建设_建站系统 版权所有 (网站地图) 粤ICP备10235580号