【发布时间】:2018-03-22 07:23:12
【问题描述】:
我试图在我的英雄形象的底部画一条曲线,但很难按照我想要的方式得到它。如果有人有任何建议,将不胜感激。
body {
margin: 0;
background: lightblue;
}
div#hero {
display: flex;
flex: 1;
position: relative;
height: 50vh;
background-image: url('https://wallpaperbrowse.com/media/images/soap-bubble-1958650_960_720.jpg');
width: 100%;
border-bottom-left-radius: 130% 600px;
border-bottom-right-radius: 130% 600px;
margin-left: -2em;
padding-right: 4em;
}
.button {
height: 60px;
width: 180px;
padding: 10px;
border-radius: 5px;
background-color: blue;
margin: -25px auto;
align-self: flex-end;
}
<div id="hero"></div>
【问题讨论】:
-
你能发布一个你想要实现的设计的链接吗?取决于此,答案会有所不同。
-
是的,对不起,我忘了添加它。来了