vue3实现抽奖模板设置

本文实例为大家分享了vue3实现抽奖模板设置的具体方法,供大家参考,具体内容如下
效果图
vue3实现抽奖模板设置
文章图片

【vue3实现抽奖模板设置】代码

.container {position: relative; .ul-box {display: flex; flex-wrap: wrap; width: 300px; li {width: 100px; height: 100px; background: pink; border: 1px solid #fff; display: flex; justify-content: center; align-items: center; cursor: pointer; }}.p-title {margin: 0; min-width: 150px; font-size: 14px; line-height: 1.4; padding: 10px 20px; cursor: pointer; }.p-title:hover {background: #e6ebf5; }.pop-box .popup {width: 200px; background: #fff; color: #333; border-radius: 4px; position: absolute; top: 30px; left: 30px; border: 1px solid #e6ebf5; margin-left: -50px; margin-top: 60px; z-index: 9999; animation: left 1s; }.pop-box .popup span {display: block; width: 0; height: 0; border-width: 0 10px 10px; border-style: solid; border-color: transparent transparent #e6ebf5; position: absolute; top: -10px; left: 50%; /* 三角形居中显示 */margin-left: -10px; /* 三角形居中显示 */}.pop-box .popup em {display: block; width: 0; height: 0; border-width: 0 10px 10px; border-style: solid; border-color: transparent transparent #fff; position: absolute; top: 1px; left: -10px; }}

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

    推荐阅读