CSS box-shadow盒阴影与border边框降级的实现策略实例页面

回到相关文章 »

代码:

CSS代码:
.ui_dropanel_x {
    width: 260px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    border: 1px solid #d0d0d5;
    border: 0 rgba(0,0,0,.2);
}
    
HTML代码:
<a href="javascript:" class="delete"><img src="delete.png" width="16" height="16"> 删除我</a>
                
JS代码:
new DropPanel($('.delete'), {
    title: "标题",
    content: '确定删除?'	
});
                

效果: