个人css样式

<style>

.div1{
width:200px;
height:100px;
border:1px solid #dddddd;
transition:all 0.5s linear 0s; // 设置缓慢时长和延迟时间
}
.div1:hover{
border-radius:50px;
font-weight:bold;
border:1px solid #ffffff;
}
.div{
text-align:center;
line-height:93px;
font-size:16px;
font-family:youyuan;
cursor:pointer;
}
.div1:active{
color:#dddddf;
border:1px solid #dfdfdf;
}
.div2 {
width: 200px;
height: 100px;
margin-top: 30px;
background: repeating-linear-gradient(120deg,transparent,transparent 1px,#2cc36b 3px,#2cc36b 8px);
animation: shine 4s infinite linear;
overflow: hidden;
border: 2px solid #000000;
border-radius: 2px;
}
@keyframes shine {
0% {
border-color: #2cc36b;
clip: rect(0, 220px, 2px, 0);
color:#000000;
}
50% {
border-color: #ffffff;
clip: rect(0, 220px, 2px, 0);
color:#ffddff;
}
100% {
border-color: #2cc36b;
clip: rect(0, 220px, 2px, 0);
color:#000000;
}
}
.div3{
width:200px;
height:100px;
border:1px solid #dddddd;
margin-top: 30px;
}

.div4{
width:200px;
height:200px;
background:radial-gradient(200px 200px at left top,transparent 20%,#f90c 60%);
border-radius:50%
}

</style>

<body>

<div class="div0">
 <div class="div1 div">
  Layui 经典模块化前端框架
 </div>

 <div class="div2 div">
  Layui 经典模块化前端框架
 </div>

 <div class="div3">

 </div>

 <div class="div4">

 </div>


</div>

</body>

posted @ 2020-09-15 17:43  迷墙!  阅读(129)  评论(0编辑  收藏  举报