【发布时间】:2014-10-21 14:50:08
【问题描述】:
.ribbon {
width: 288px;
position: absolute;
top: 123px;
left: 250px;
background: #000;
font-family: 'Lobster Two', Helvetica, sans-serif;
font-size: 30px;
letter-spacing: 1px;
font-style: italic;
line-height: 60px;
height: 60px;
font-weight: normal;
}
.ribbon:before, .ribbon:after {
content: '';
position: absolute;
display: block;
border: 30px solid #333333;
z-index: -1;
}
.ribbon:before {
left: -33px;
top: -10px;
border-left-width: 15px;
border-left-color: transparent;
}
.ribbon:after {
right: -33px;
bottom: -10px;
border-right-width: 15px;
border-right-color: transparent;
}
.. 但我不能完全控制边的宽度使其看起来像这样:
【问题讨论】:
-
问题是有空间吗?
标签: css shapes css-shapes