【发布时间】:2017-04-25 20:35:43
【问题描述】:
【问题讨论】:
-
你能分享一下你目前尝试过的代码吗?
标签: css
【问题讨论】:
标签: css
您可以为不同角落的边界半径组合两个值,如下面的 sn-p 所示:
.x {
width: 240px;
height: 120px;
background: #fa0;
border-bottom-left-radius: 120px 40px;
border-bottom-right-radius: 120px 40px;
}
<div class="x"></div>
【讨论】:
您正在搜索类似的内容?
#tv {
position: relative;
width: 200px;
height: 150px;
margin: 20px 0;
background: red;
border-bottom-left-radius: 100px 40px;
border-bottom-right-radius: 100px 40px;
}
<div id="tv"></div>
【讨论】:
是的,创建两个div 怎么样,一个在另一个里面,然后你像这样设置它们:
<style>
.outer{
width:1000px;
height:100px;
border-radius:100%;
}
.inner{
width:100px;
height:100px;
background:gold;
overflow:hidden;
}
</style>
<div class="outer">
<div class="inner"></div>
</div>
你明白了吗?
【讨论】: