随笔分类 - css
摘要:效果如下图: 代码如下: .b-list .ceil .line { height: 20px; width: 100%; margin: 0 auto; background: radial-gradient(rgba(235,116,63,0.9), rgba(235,116,63,0.3),
阅读全文
摘要:1.渐变从左到右 background: linear-gradient(to right,#000,#fff); 2.渐变从上到下 background: linear-gradient(tobottom,#000,#fff); 3.角度渐变(60°) background: linear-gra
阅读全文
摘要:如下图所示: 需要实现渐变的小竖线或者小横线 可以用伪类, 代码如下: div { position: relative; z-index: 2; &::after{ content: ''; position: absolute; z-index: 4; right: 0; top: 10%; b
阅读全文
摘要:img{ -webkit-filter: grayscale(100%); filter: grayscale(100%); } filter 滤镜属性 grayscale,百分比 将图像转换为灰度图像。值定义转换的比例。值为100%则完全转为灰度图像,值为0%图像无变化。值在0%到100%之间,则
阅读全文
摘要:实现如图文本框边上的内阴影,不需要切背景图 css如下 .i-box-m { background-color: #eb5450; border-radius: 0.4rem; box-shadow: inset -5px 5px 5px #cc4845, inset -5px -5px 5px #
阅读全文
摘要:HTML部分 <div class="shadow" v-show="showShadow"> <div class="shadow-main"> <h3>温馨提示</h3> <p>您来晚啦!本商品太过抢手!明天早点来哦~</p> <button class="choise-shadow" @cli
阅读全文