微件:Akstylemenu
<style>
.ak-right {
position: relative;
width: 400px;
height: 400px;
transform-style: preserve-3d;
transform: perspective(1000px) rotateY(-20deg);
}
.ak-right a {
display: block;
text-decoration: none;
font-family: serif;
font-weight: bold;
color: #333;
}
.ak-card {
display: block;
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, .12);
overflow: hidden;
}
.ak-block1 {
position: absolute;
width: 360px;
height: 90px;
top: 80px;
left: 24px;
background-color: rgba(255, 255, 255, 0.6);
background-image: url(//media.prts.wiki/e/ea/Mooncell-bg-norepeat-gray.png);
background-repeat: no-repeat;
background-position: 200px 5px;
background-size: 80px;
line-height: 90px;
font-size: 32px;
text-align: center;
border-bottom: 4px solid;
border-image: linear-gradient(to right, white, white 40%, orangered 40%, orangered 95%, white 95%, white) 1;
}
.ak-block1 .ak-month {
position: absolute;
top: 8px;
left:8px;
width: 90px;
height: 16px;
padding-top: 2px;
line-height: 14px;
text-align: center;
font-size: 14px;
background-color: #ccc;
}
.ak-block1 .ak-day {
position: absolute;
top: 26px;
left:8px;
width: 90px;
height: 36px;
line-height: 36px;
text-align: center;
font-size: 36px;
background-color: #ccc;
}
.ak-block1 .ak-weekday{
position: absolute;
top: 66px;
left:8px;
width:90px;
height:18px;
padding: 2px 0;
line-height: 18px;
text-align: center;
font-size: 16px;
color: white;
background-color: #222;
}
.ak-block2 {
position: absolute;
width: 150px;
height: 60px;
top: 182px;
left: 0;
background-color: rgba(255, 255, 255, 0.6);
font-size: 24px;
}
.ak-block3>div{
position: absolute;
left: 12px;
top: 32px;
font-size: 12px;
color: #999;
}
.ak-block3 {
position: absolute;
width: 180px;
height: 60px;
top: 182px;
left: 162px;
background-color: rgba(255, 255, 255, 0.6);
font-size: 24px;
}
.ak-block2 a,
.ak-block3 a {
padding-left: 12px;
padding-bottom: 20px;
line-height: 40px;
}
.ak-block4 {
position: absolute;
width: 312px;
height: 60px;
top: 254px;
left: 60px;
background-color: rgba(33, 150, 243, 0.6);
line-height: 60px;
}
.ak-block5 {
position: absolute;
width: 126px;
height: 60px;
top: 326px;
left: 24px;
background-color: rgba(255, 255, 255, 0.6);
line-height: 60px;
}
.ak-block6 {
position: absolute;
width: 196px;
height: 60px;
top: 326px;
left: 162px;
background-color: rgba(255, 255, 255, 0.6);
line-height: 60px;
}
</style> <script> (window.RLQ = window.RLQ || []).push(function () {
$("body").mousemove(function (event) {
var screenWidth = $(window).width();
var mousePosition = event.pageX;
var rotateValue = 20 * (mousePosition / screenWidth) - 35
$(".ak-right").css("transform", "perspective(1000px) rotateY(" + rotateValue + "deg)");
});
}); </script>