【发布时间】:2018-03-16 14:07:35
【问题描述】:
我的元素底部有一个锯齿形边框。我怎样才能将它移到左侧的边框呢?
.zigzag {
height: 150px;
width: 400px;
background: linear-gradient(-135deg, #e8117f 5px, transparent 0) 0 5px, linear-gradient(135deg, #e8117f 5px, #fff 0) 0 5px;
background-color: #e8117f;
background-position: left bottom;
background-repeat: repeat-x;
background-size: 10px 10px;
}
<div class="zigzag"></div>
【问题讨论】:
-
你试过什么方法把它弄到左边?