<!DOCTYPE html>
<html>
<head>
<style>
.book-page {
position: absolute;
top: 0;
left: 0;
width: 80px;
height: 80px;
background-color: #f8fcf2;
border-radius: 5px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
transform: perspective(600px) rotateX(0deg) rotateY(0deg);
transition: transform 0.3s ease-in-out;
}
.book-page:hover {
transform: perspective(600px) rotateX(-15deg) rotateY(15deg);
}
.page-front,
.page-back {
position: absolute;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
border-radius: 5px;
}
.page-front {
background-image: url('front-page.jpg');
}
.page-back {
background-image: url('back-page.jpg');
transform: rotateY(180deg);
}
.center-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
font-size: 20px;
font-weight: bold;
color: #007BFF; /* 科技蓝 */
}
</style>
</head>
<body>
<div class="book-page">
<div class="page-front"></div>
<div class="page-back"></div>
<a href="https://www.example.com" class="center-text">首页</a>
</div>
</body>
</html>
相关标签: