设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 服务器 > 系统 > 正文

CSS制作各种样式的彩虹效果(4)

发布时间:2020-03-15 08:16 所属栏目:52 来源:站长网
导读:box-shadow:010px0red,020px0yellow,030px0green,040px0blue,050px0purple; } 效果: CSS样式四,使用position:absolute来实现,感觉这种是最常见的了 CSS Code复制内容到剪贴板 .box1{ position:absolute; width:2

            box-shadow: 0 10px 0 red,0 20px 0 yellow, 0 30px 0 green,0 40px 0 blue,0 50px 0 purple;   

        }   

效果:

CSS样式四,使用position:absolute来实现,感觉这种是最常见的了

CSS Code复制内容到剪贴板

.box1{   

            position: absolute;   

            width: 200px;   

            height: 100px;   

            background: #008aff;   

        }   

        .box2{   

            position: absolute;   

            margin-top: 20px;   

            width: 200px;   

            height: 60px;   

            background: #ffff00;   

        }   

        .box3{   

            position: absolute;   

            margin-top: 40px;   

            width: 200px;   

            height: 20px;   

            background: #ff6633;   

        }   

效果:
 


CSS样式五,使用radial-gradient:

CSS Code复制内容到剪贴板

.box4{   

           width: 260px;   

           height: 130px;   

           overflow: hidden;   

       }   

       .box5{   

           width: 260px;   

           height: 260px;   

           border-radius: 100%;   

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读