欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

css遮罩全屏居中對齊的實現(xiàn)方式

  發(fā)布時間:2018-07-16 17:18:48   作者:佚名   我要評論
本文通過實例代碼給大家介紹了css遮罩全屏居中對齊的實現(xiàn)方式,代碼簡單易懂,非常不錯,具有一定的參考借鑒價值,需要的朋友參考下吧

具體代碼如下所示:

<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: -19px;
   /* background-color: blue; */
}
#toastLoaderText {
    position: fixed;
    top: 53%;
    left: 50%;
    width: 250px;
    margin-top: -10px;
    margin-left: -125px;
    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>

總結(jié)

以上所述是小編給大家介紹的css遮罩全屏居中對齊的實現(xiàn)方式,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評論