1
A
回答
2
试试这个http://codepen.io/anon/pen/ogzoQQ
<div id="box"></div>
#box{
width:100px;
height:100px;
background:blue;
box-shadow: 0px 3px green,0px 6px orange,0px 9px yellow;
border-radius:5px;
}
+0
好现在可以应用三个阴影,边界是什么? –
+0
@NaveenKumarPG你可以做到这一点,但这是很多工作http://codepen.io/anon/pen/WbGzyr – Akshay
0
你可以尝试用双边框,边框半径和阴影接近这一点。
.class {
border-radius: 5px 5px 5px 5px;
border-bottom: 3px double #BBBBBB;
box-shadow: 0px 3px 3px rgba(187,187,187, 1);
}
0
你可以使用
border-bottom: 3px double #BBBBBB;"
,如果你想三行你需要使用三种不同的div
border-bottom: 1px solid #BBBBBB;
来回三个货柜这种效果。为最后的div给出阴影效果。
0
This是实现上述输出的一种方法。
HTML
<div class="borderBox">
<div class="innerCnt">
<ul>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
</ul>
</div>
</div>
CSS
.innerCnt {
background: #fff;
position: relative;
z-index: 1;
border-radius: 5px;
}
.innerCnt ul {
margin: 0
}
.borderBox {
height: 100px;
border: 1px solid #ccc;
border-radius: 8px;
position: relative;
}
.borderBox:after,
.borderBox:before {
border: 1px solid #ccc;
content: " ";
position: absolute;
height: 100%;
width: 100%;
top: 1px;
border-radius: 8px;
}
.borderBox:after {
top: 3px;
border-radius: 7px;
}
相关问题
- 1. StackPanel底部边框
- 2. 与边框底部
- 3. 行边框顶部边框底部悬停单行?
- 4. 顶部和底部边框
- 5. Android XML:TextView的简单底部边框
- 6. CSS怀疑 - 边界左边框底部
- 7. 边框底部覆盖边界左侧?
- 8. 修复边框底部菜单
- 9. CSS引导边框底部
- 10. CSS块底部边框
- 11. CSS底部边框问题
- 12. 底部渐变边框
- 13. CSS边框底部IEXPLORER
- 14. 安卓:有边框底部
- 15. 条目底部边框
- 16. WPF Grid底部边框
- 17. 边框底部缺失
- 18. 边框底部太宽
- 19. 底部边框在子菜单中的镶边中消失
- 20. 顶部和底部边框的CSS边框问题
- 21. 更改边框底部到边框顶部
- 22. 刷新时更改边框底部和边框顶部颜色
- 23. 底部边框添加到一个div
- 24. BackgroundResource边框的顶部和底部
- 25. 边框底部显示div的顶部
- 26. 左底边框
- 27. 使主动力控的下边框上的菜单的底部边框的CSS
- 28. 没有底部边框的全高左右边框
- 29. 表中的底部边框被垂直边框切割
- 30. css在边框底部有空隙的方形边框
的完全跨浏览器的简单的解决方案是使用三个要素。奇特的CSS3解决方案应该使用box-shadow,它支持逗号分隔的列表,并且可以根据需要获取尽可能多的阴影。 – adeneo
没有评论downvote不赞赏。 –