<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>css3书籍封面制作</title>
</head>
<head>
    <meta charset="utf-8">
    <title></title>
    <style>
        .book-green{
            background-color: green;
        }
        .book-black{
            background-color: black;
        }
        .book{
            position: relative;
            margin: 20px;
            padding: 10px;
            color: white;
            width: 200px;
            height: 280px;
            background-color: red;
            border-radius: 10px 19px 19px 10px;
            box-shadow: 5px 5px 5px #888888;
            float: left;
            overflow: hidden;
            opacity: 0.5;
            z-index: -1;
        }
        .book >div{
            z-index: 11;
        }
        .bg{
            float: left;
            z-index: -1!important;
            width: 100%;
            margin-left: -10px;
            bottom: 0px;
            height: 100%;
            background-size: cover;
            position: absolute;
        }

        .title{
            padding-top: 10px;
            font-size: 24px;
            font-weight: bold;
        }
        .subtitle{
            padding: 10px 0px 0px 70px;
            font-size: 14px;
            font-weight: bold;
        }
        .author{
            font-size: 9px;padding:5px;
        }
        .publish{
            font-size: 9px;padding-top:150px;padding-left: 50px;
        }
    </style>
</head>
<body>
<div class="book">
    <div class="title">分布式互联网架构</div>
    <div class="subtitle">笔笔清晰</div>
    <div class="author">作者:汉</div>
    <div class="publish">类型:企业账本</div>
    <div class="bg" style="background-image:linear-gradient(to bottom, rgba(255, 0, 0, 0.2),rgba(255, 0, 0, 0.1),rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)), url(https://tse1-mm.cn.bing.net/th/id/OIP-C.nRlAFygdctTCHmIWN7GxRwHaEK?pid=ImgDet&rs=1)"> </div>
</div>
<div class="book book-green">
    <div class="title">分布式互联网架构</div>
    <div class="subtitle">家庭记账</div>
    <div class="author">作者:汉</div>
    <div class="publish">类型:家庭账本</div>
</div>
<div class="book book-black">
    <div class="title">分布式互联网架构</div>
    <div class="subtitle">诸人协同</div>
    <div class="author">作者:汉</div>
    <div class="publish">类型:企业账本</div>
</div>
</body>
</html>

 

最后修改于 2022-04-14 17:14:41
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付
上一篇