css - How to bring the curved tail behind the img - Stack Overflow
I am trying to get the curved tail to be behind the image, but cannot achieve this. I've tried the z-index and it doesn't work.
.bubble {
position: relative;
height: 150px;
width: 255px;
margin-right: 5px;
border-radius: 25px 25px 0 25px;
border: 2px solid #fff;
background-image: url(.jpg);
background-size: contain;
}
.bubble::after {
content: "";
position: absolute;
right: 0;
background-color: transparent;
bottom: -50px;
height: 50px;
z-index: 0;
width: 25px;
border-top-right-radius: 25px;
box-shadow: 0 -25px 0 0 #fff;
}
<div class="bubble"></div>
最新文章
- 安卓L最新曝光:可发挥64位计算特性!
- 谷歌重塑软件业务围剿苹果
- filename has 'netboxlabs-diode-netbox-plugin', but metadata has 'unknown' - Stack Overflow
- rust - Why is the compiler asking for Sized, when I already added it? - Stack Overflow
- reactjs - how to fetch headers in middleware in Next js - Stack Overflow
- typescript - How to keep autosuggestion with generics when working with keyof? - Stack Overflow
- python - How can I use FilteredSelectMultiple widget in a django custom form? - Stack Overflow
- How to programmatically trigger "Next desktop background" in Windows using C#? - Stack Overflow
- netlogo - Indirect allocation of resources than intended - Stack Overflow
- react native - Views are still shifted when the keyboard opens, even though they are not wrapped in a KeyboardAvoidingView - Sta
- scala - How does maxOffsetsPerTrigger works in spark structured streaming - Stack Overflow
- excel - Add a rule to the VBA to remove filters - Stack Overflow
- GitHub disallow merge and rebase commits for multiple repositories - Stack Overflow
- zip - Download and unzip file from URL with Github Action - Stack Overflow
- ios - SwiftUI TextField with UIKit wrapper expanding full screen when entering numbers in custom crypto swap interface - Stack O
- eclipse - Floodlight debug Exception in thread "main" java.lang.Error - Stack Overflow
- tsconfig - Is there a typescript compiler option that prevents implicit widening from readonly properties to readwrite? - Stack