在我的website我想制作一个语音气泡,并找到一个很好的教程。但我想做一些改变,但我不知道如何去做。 基本上我想水平翻转这个小三角,所以它的垂直在右侧而不是左侧。 这里是CSS:用CSS创建形状
.bubble
{
margin-top: 100px;
position: relative;
width: 200px;
height: 100px;
text-align: center;
line-height: 100px;
background-color: #fff;
border: 8px solid #666;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
-webkit-box-shadow: 2px 2px 4px #888;
-moz-box-shadow: 2px 2px 4px #888;
box-shadow: 2px 2px 4px #888;
}
.bubble:after
{
content: ' ';
position: absolute;
width: 0;
height: 0;
left: 38px;
top: 100px;
border: 15px solid;
border-color: #fff transparent transparent #fff;
}
看到我的答案,让我知道,如果我落后了一些,其中所引用。因为我觉得我有点混淆理解你的问题。 – w3uiguru
有关更多形状,请检查此 http://css-tricks.com/examples/ShapesOfCSS/ –
可能的重复[Speech with bubble](http://stackoverflow.com/questions/30299093/speech-bubble-with - ) – jbutler483