这个该如何实现?
回复讨论(解决方案)
CSS3 渐变
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; }
查看更多关于一个图片如何跨越2个不同背景颜色的Div?_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did109459