zl程序教程

您现在的位置是:首页 >  前端

当前栏目

css3颜色渐变_灰色渐变图片

css3 图片 颜色 渐变 灰色
2023-06-13 09:13:03 时间

大家好,又见面了,我是你们的朋友全栈君。

Document

*{margin:0;padding:0}.words{font-size:25px;font-weight:700;text-align:center;margin:20px 0}div{width:300px;height:150px;margin:0 auto 10px;border:1px solid #ddd;

}.box1{background:-webkit-linear-gradient(left, transparent, #000 55%);background:-o-linear-gradient(right, transparent, #000 55%);background:-moz-linear-gradient(right, transparent, #000 55%);background:linear-gradient(to right, transparent, #000 55%);

}.box2{background:linear-gradient(to bottom, rgb(255, 255, 255), #fff0d5);background:-o-linear-gradient(to bottom, rgb(255, 255, 255), #fff0d5);background:-ms-linear-gradient(to bottom, rgb(255, 255, 255), #fff0d5);background:-moz-linear-gradient(to bottom, rgb(255, 255, 255), #fff0d5);background:-webkit-linear-gradient(to bottom, rgb(255, 255, 255), #fff0d5);

}.box3{background:-webkit-linear-gradient(top, rgb(106, 106, 106) 0%, rgb(80, 80, 80) 50%, #393939 50%, #7e7e7e);background:-moz-linear-gradient(top, rgb(106, 106, 106) 0%, rgb(80, 80, 80) 50%, #393939 50%, #7e7e7e);background:-o-linear-gradient(top, rgb(106, 106, 106) 0%, rgb(80, 80, 80) 50%, #393939 50%, #7e7e7e);background:-ms-linear-gradient(top, rgb(106, 106, 106) 0%, rgb(80, 80, 80) 50%, #393939 50%, #7e7e7e);background:linear-gradient(top, rgb(106, 106, 106) 0%, rgb(80, 80, 80) 50%, #393939 50%, #7e7e7e);

}.box4{background:-webkit-linear-gradient(top, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, #222 50%, #222);background:-moz-linear-gradient(top, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, #222 50%, #222);background:-o-linear-gradient(top, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, #222 50%, #222);background:-ms-linear-gradient(top, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, #222 50%, #222);background:linear-gradient(top, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, #222 50%, #222);

}

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/213553.html原文链接:https://javaforall.cn