- .inner-border {
- background: #000;
- color: #fff;
- margin: 50px;
- padding: 15px;
- position: relative;
- }
- .inner-border:before {
- border: 5px solid #000;
- content: "";
- position: absolute;
- top: -10px;
- bottom: -10px;
- left: -10px;
- right: -10px;
- }
- //该片段来自于http://www.codesnippet.cn/detail/010320132272.html
来源: http://www.codesnippet.cn/detail/010320132272.html