我有一个CSS 3的小问题,即我将创建这样一个对象与单个项目。 这里是什么,我想实现的图像:CSS 3 - 在状态之前和之后的圆角
这里是有我:
CSS:
body{
background:grey;
padding:10px;
}
#talkbubble {
margin:0 auto;
box-shadow: 3px 10px 7px #deefe5;
width: 590px;
height: 160px;
background: white;
position: relative;
border-radius:10px;
border-bottom-left-radius:0px;
}
#talkbubble:before {
box-shadow: 10px 10px 5px #deefe5;
content:"";
position: absolute;
background:white;
top: 100%;
width: 228px;
height: 62px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
#talkbubble:after{
content:"";
position: absolute;
top:100%;
left:228px;
border-top: 10px solid white;
border-right: 10px solid transparent;
background:white;
}
HTML:
<div id="talkbubble"></div>
And a jsFiddle demo
我该如何四舍五入两个部分之间的角度?
我不知道,但是这可能会帮助您:HTTP:// WWW .w3.org/TR/css3-background /#角落裁剪 – Victor
您不能。关闭的问题。 –