详见个人博客
1、css四角背景无边边框
代码如下:
<div class="BoxWrap">
<div class="horn"></div>
</div>
.horn{
width: 1000px;
height: 500px;
margin: 100px;
background: linear-gradient(#00faff, #00faff) left top,
linear-gradient(#00faff, #00faff) left top,
linear-gradient(#00faff, #00faff) right top,
linear-gradient(#00faff, #00faff) right top,
linear-gradient(#00faff, #00faff) left bottom,
linear-gradient(#00faff, #00faff) left bottom,
linear-gradient(#00faff, #00faff) right bottom,
linear-gradient(#00faff, #00faff) right bottom;
background-repeat: no-repeat;
background-size: 5px 20px, 20px 5px;
}
2、css四角蓝色边框,科技蓝
代码如下:
<div class="BoxWrap">
<div class="horn">
//四个div分别为四个角上的div
<div class="lt"></div>
<div class="rt"></div>
<div class="rb"></div>
<div class="lb"></div>
</div>
.BoxWrap{
width: