Yan*_*ick 4 css css3 css-shapes
我正在尝试仅使用css重现此图像
我玩过半径属性,但你会看到我没有得到相同的角度效果.
.shape{
background-color: black;
opacity:0.9;
filter:alpha(opacity=90); /* For IE8 and earlier */
color:white;
font-weight:bold;
padding: 30px 30px 30px 50px;
text-align:center;
position:absolute;
right:0;
bottom:0;
z-index:1003;
font-size: 20px;
border-top-left-radius: 125px;
-moz-border-radius-topright: 125px;
}
?
Run Code Online (Sandbox Code Playgroud)
你可以在http://jsfiddle.net/ymorin007/7qX4U/看到我的尝试.
谢谢.
可能不是跨浏览器兼容,但这会让你接近:)
.shape{
background-color: black;
opacity:0.9;
filter:alpha(opacity=90); /* For IE8 and earlier */
color:white;
font-weight:bold;
padding: 30px 30px 30px 50px;
text-align:center;
position:absolute;
right:0;
bottom:0;
z-index:1003;
font-size: 20px;
border-top-left-radius: 125px;
-moz-border-radius-topright: 125px;
}
.shape::before{
content:"";
width:0;
height:0;
position:absolute;
left:-34px;
border-left: 53px solid transparent;
border-right: 53px solid transparent;
border-bottom: 53px solid black;
}
?
Run Code Online (Sandbox Code Playgroud)
小提琴:http://jsfiddle.net/pggRb/