在不起作用且仅在SAFARI浏览器中可见的网页上使用css(transform rotation)创建Honeycomb图像。 这是代码:
.hex {
-webkit-filter: grayscale(100%); /* Webkit */
filter: gray; /* IE6-9 */
filter: grayscale(100%);
position: relative;
list-style-type: none;
float: left;
overflow: hidden;
visibility: hidden;
-webkit-transform: rotate(-60deg) skewY(30deg);
}
.hex * {
position: absolute;
visibility: visible;
}
.hexIn {
display:block;
width: 100%;
height: 100%;
text-align: center;
color: #fff;
overflow: hidden;
-webkit-transform: skewY(-30deg) rotate(60deg);
transform: skewY(-30deg) rotate(60deg);
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}