html5 - 前端切一个透明背景的问题?
阿神
阿神 2017-04-17 14:37:08
0
2
732

项目中的所有弹出框都是这种形式,关闭弹窗那个按钮有一半是透明的.
如果:

<p class="d1">
   <a class="delete"></a>
   ...
</p>
.d1{background:#fff;position:relative;}
a.delete{background:url(...);position:absolute;top:0;right:0;}

这样的话d1的白色背景会挡住.delete的透明背景,
如果切一整个弹出框的话,但是每个弹出框的高度有不同,
好尴尬的问题?

阿神
阿神

闭关修行中......

reply all(2)
洪涛

An example of a simple pseudo-class. . In fact, using PNG is relatively simple
https://jsfiddle.net/yktmb251/

伊谢尔伦

If you consider using it, what about cutting out the following one?

It is divided into three parts as shown below. Block 1 is white but left:-20px; that is, it shrinks back one piece. The outer box must have overflow;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template