84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
如题,万分感谢。难道只有在p里嵌套一个img标签,再用绝对定位解决么?
光阴似箭催人老,日月如移越少年。
用css的background-size 和 rgba()应该能解决问题`<p class="bg">
<p class="content"> </p>
</p>`事件触发时背景的p的background-size 增大到150%之类的,.content的background:rgba(0,0,0,0.8) 0.8一直减到0 。 css用transition或animation来实现过渡变化,或者用js or jq写代码也行
用css的background-size 和 rgba()应该能解决问题
`<p class="bg">
</p>
`
事件触发时背景的p的background-size 增大到150%之类的,.content的background:rgba(0,0,0,0.8) 0.8一直减到0 。 css用transition或animation来实现过渡变化,或者用js or jq写代码也行