如图所示,想在2个不同颜色的层间放个图标,黑白相邻的层不能用黑加白的图片做背景图片。
这个该如何实现?
回复讨论(解决方案)
CSS3 渐变
- nbsp;html>
JS Bin #box{ position:relative; width:100px; height:0; border-top:25px solid #000; border-bottom:25px solid #fff; } .img{ position:absolute; top:-50%; margin-top:-12.5px; left:50%; margin-left:-12.5px; width:25px; height:25px; background:red; border-radius:25px; }
登录后复制
css3,,,渐变。。。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。