javascript - 利用思否猫素材实现一个丝滑的轮播图(html + css + js)_个人文章 - SegmentFault 思否
使用思否猫素材实现一个轮播图本文参与了1024程序员节,欢迎正在阅读的你也加入。通过本文,你将学到:htmlcssjs没错,就是html,css,js,现在是框架盛行的时代,所以很少会有人在意原生三件
顺晟科技
2022-09-13 14:16:12
45
div添加渐变色后,圆角失效。所以用伪元素来实现同时圆角渐变色:
.main{
width: 400px;
height: 600px;
margin: 0rem 1rem;
padding: 0.5rem 0rem;
text-align: center;
background: #e8eced;
border-radius: 0rem 0.4rem 0.4rem 0rem;
}
.main:after{
content:\'\';
position: absolute;
top: 0rem;
bottom: 0rem;
left: 0.6rem;
right: 1rem;
background: -webkit-linear-gradient(to bottom,#5fb3fc, #46a1f4);
background: -moz-linear-gradient(to bottom,#5fb3fc, #46a1f4);
background: linear-gradient(to bottom,#5fb3fc, #46a1f4);
border-radius: 0.4rem 0.5rem 0.5rem 0.4rem;
content: \'\';
z-index: -1;
}
<div class="main"></div>
22
2022-10
19
2022-10
19
2022-10
19
2022-10
19
2022-10
19
2022-10