书页效果

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>书页效果</title>
</head>
<style>
    .book {
        position: relative;
        width: 200px;
        height: 248px;
        margin-left: 20px;
        border: 1px #eee solid;
        background-color: #fff;
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2)
    }
    .book::after {
        position: absolute;
        content: '';
        bottom: 10px;
        left: 35px;
        width: 50%;
        height: 50%;
        -webkit-transform: skew(-30deg) rotate(-6deg);
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: -1
    }
    .book::before {
        position: absolute;
        content: '';
        bottom: 10px;
        right: 35px;
        width: 50%;
        height: 50%;
        -webkit-transform: skew(30deg) rotate(6deg);
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: -1
    }
</style>
<body>
    <div class='book'>
        
    </div>
</body>
</html>
posted @ 2020-05-22 15:36  热爱前端知识  阅读(148)  评论(0编辑  收藏  举报