【发布时间】:2015-02-28 01:41:28
【问题描述】:
我如何在没有-webkit-clip-path 的情况下制作这种类型的五边形,因为它不适用于大多数浏览器,如 Firefox、IE9。
我的代码:http://codepen.io/anon/pen/MYbKrQ
div {
width: 150px;
height: 150px;
background: #1e90ff;
-webkit-clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
}
/* Center the demo */
html, body {
height: 100%;
}
body {
display: flex;
justify-content: center;
align-items: center;
}
<div></div>
【问题讨论】:
-
@Harry 我的问题是我为什么在这里发帖的方向
标签: html css css-shapes