gpt4 book ai didi

html - 我怎样才能旋转这些六边形?

转载 作者:行者123 更新时间:2023-11-28 13:50:17 25 4
gpt4 key购买 nike

Hi, I am just wondering could anyone help me out with this problem, I have to rotate these three hexagons slightly. Around 15 degrees or so. It has to work in internet explorer only. I have been banging my head against this all day and it is quite frustrating. Thanks.

<html>
<head>

<style type="text/css">

.top
{
height:0px;
width:0px;
display: block;
border:50px solid #606060;
border-top-color:transparent;
border-right-color:transparent;
border-bottom-color:#606060;
border-left-color:transparent;
//transform: rotate(30deg);
}

.middle
{
height: 50px;
background: #606060;
width: 100px;
display: block;
//transform: rotate(30deg);
}

.bottom
{
height:0px;
width:0px;
display: block;
border:50px solid #606060;
border-top-color:#606060;
border-right-color:transparent;
border-bottom-color:transparent;
border-left-color:transparent;
// transform: rotate(30deg);

}

.top2
{
height:0px;
width:0px;
display: block;
border:50px solid red;
border-top-color:transparent;
border-right-color:transparent;
border-bottom-color:red;
border-left-color:transparent;
//transform: rotate(30deg);
}

.middle2
{
height: 50px;
background: red;
width: 100px;
display: block;
//transform: rotate(30deg);
}

.bottom2
{
height:0px;
width:0px;
display: block;
border:50px solid red;
border-top-color:red;
border-right-color:transparent;
border-bottom-color:transparent;
border-left-color:transparent;
// transform: rotate(30deg);

}

.top3
{
height:0px;
width:0px;
display: block;
border:50px solid #C0C0C0;
border-top-color:transparent;
border-right-color:transparent;
border-bottom-color:#C0C0C0;
border-left-color:transparent;
//transform: rotate(30deg);
}

.middle3
{
height: 50px;
background: #C0C0C0;
width: 100px;
display: block;
//transform: rotate(30deg);
}

.bottom3
{
height:0px;
width:0px;
display: block;
border:50px solid #C0C0C0;
border-top-color:#C0C0C0;
border-right-color:transparent;
border-bottom-color:transparent;
border-left-color:transparent;
// transform: rotate(30deg);

}



</style>
</head>
<body>

<div class="hexagon"style="position: absolute; top: 0px; left: 10px;">
<span class="top"></span>
<span class="middle"></span>
<span class="bottom"></span>

</div>
<!-- GREEN -->
<div class="hexagon3" style="position: absolute; top: 110px; left: 65px;">
<span class="top3"></span>
<span class="middle3"></span>
<span class="bottom3"></span>

</div>
<!-- black-->
<div class="hexagon2" style="position: absolute; top: 0px; left: 120px;">
<span class="top2"></span>
<span class="middle2"></span>
<span class="bottom2"></span>

</div>



</BODY

</html>

最佳答案

这是资源管理器中用于转换的 CSS:

filter: progid:DXImageTransform.Microsoft.Matrix(/* IE6–IE9 */
M11=0.9659258262890683, M12=-0.25881904510252074, M21=0.25881904510252074, M22=0.9659258262890683, sizingMethod='auto expand');
zoom: 1;

看看这个页面http://css3please.com/

关于html - 我怎样才能旋转这些六边形?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11455609/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com