相关疑难解决方法(0)

CSS框阴影围绕自定义形状?

那里,

我需要创建一个看起来像这样的div:

截图http://imageshack.us/a/img19/8223/bubblep.png

到目前为止我想出的是:http: //jsfiddle.net/suamikim/ft33k/

.bubble {
    position: relative;
    width: 80px;
    height: 160px;
    border: 1px solid #33A7F4;
    border-radius: 9px;
    margin: 100px;
    -webkit-box-shadow: 0px 0px 20px 2px #33A7F4;
    -moz-box-shadow: 0px 0px 20px 2px #33A7F4;
    -ms-box-shadow: 0px 0px 20px 2px #33A7F4;
    -o-box-shadow: 0px 0px 20px 2px #33A7F4;
    box-shadow: 0px 0px 20px 2px #33A7F4;

}

.bubble:after, .bubble:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    border: 17px solid transparent;
    right: 100%;
}

.bubble-left:before {
    border-top-color: #33A7F4;
    border-right-color: #33A7F4;
    top: …
Run Code Online (Sandbox Code Playgroud)

html css css-shapes

28
推荐指数
3
解决办法
3万
查看次数

标签 统计

css ×1

css-shapes ×1

html ×1