开发者

Line thickness problem with CSS Speech bubble created with CSS

Using this the samples located here I've put this together:

The code is located on jsFiddle.net. If everything works when you run the sample, you should see a button with a question mark and clicking on that button the and the bubble should pop out.

The two things I can't seem to figure out right now is getting a 1px border on the triangle and vertically centering the triangle on the left开发者_C百科 edge.


For the line thickness of the triangle, change the top, left and border-width values for the inner triangle so it's just 1px smaller than the larger triangle.

.triangle-border.left:after {
    top: 11px;
    left: -29px;
    border-width: 14px 29px 14px 0;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜