【发布时间】:2021-02-02 23:42:06
【问题描述】:
我正在尝试这样排。
到目前为止我尝试过的代码, JSX ->
<div className={styles.other}>
<div className={styles.edgeCut}>
<span className={styles.blueText}>Other Less-Common Paths</span>
<span>
I’m <strong>security concerned</strong><img className={styles.bottomImage} src="/arrow-right.svg"></img>
</span>
<span>
I’m an <strong>investor</strong><img className={styles.bottomImage} src="/arrow-right.svg"></img>
</span>
</div>
</div>
CSS ->
.other {
margin: 5vw 15vw;
position: relative;
}
.edgeCut {
padding: 1.5em 2em;
background: linear-gradient(273.05deg, #b9ffee 11.12%, #c2f8ff 73.8%);
width: 100%;
border-radius: 36px;
transform: rotate(-0.38deg);
position: absolute;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.blueText{
color: #5C9FCF;
}
.bottomImage{
height: 1em;
width: 2em;
margin-left: 0.5em;
cursor: pointer;
}
它显示->
它不会像第一张图片那样切割边缘。我怎样才能做到这一点。 TIA。
【问题讨论】: