css - 使用css3创建右曲线

标签 css

我想使用 css 创建如下图所示的曲线。

enter image description here

我正在尝试这样的事情:

.test {
background-color: #1d637d;
    color: #ffffff;
    border-right: 0 solid #cccccc;
    border-radius: 0px 60px 60px 10px/10px 200px 200px 0px;
}

最佳答案

我可以建议您使用两个 <div> 来解决这个问题s 和 overflow: hidden; :

https://jsfiddle.net/pf1no14x/

您可以根据需要操纵元素的大小和位置。

而且您仍然可以在.test 中放置一些内容通过使用 position: absolute; 创建另一个元素或 z-index大于 .inner的。

关于css - 使用css3创建右曲线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46464343/

相关文章:

javascript - Chrome Web 浏览器的兼容性问题

html - Bootstrap : How to make table shrink to screen?

php - Htaccess 错误地进行了 301 重定向

html - 安装了导航栏但不能链接html上的页面

html - 在移动之前,当前菜单项不会在主页(第一)部分激活

html - css中是否有任何确切的前一个节点?

html - 如何使用 bootstrap 4 定位下拉菜单?

css - 谷歌字体在 chrome 中被视为不安全的脚本

php - 交叉兼容 CSS(定位)?

javascript - 如何用另一个替换整个 css 文本?