|  | 
 
 发表于 2019-11-1 11:30:13
|
显示全部楼层 
| 以后还是附个图好了  继续学习~ 
 
 复制代码<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
section {
        width:666px;
}
article {
        box-sizing:border-box;
        width:333px;
        height:333px;
        padding:20px;
        text-align:center;
        float:left;
        border-left: 1px solid rgba(0,0,0,.3);
        border-bottom: 1px solid rgba(0,0,0,.3);
}
article:nth-child(even) {
        border-right: 1px solid rgba(0,0,0,.3);
}
article:nth-child(1) {
        border-top:1px solid rgba(0,0,0,.3)
}
article:nth-child(2) {
        border-top:1px solid rgba(0,0,0,.3);
}
img {
        height: 200px;
        width: 200px;
}
h1 {
        font-size:33px;
        margin:10px 0;
        color:#e74c3c;
}
p {
        font-size:16px;
        background:#e67e22;
        color:white;
        font-family: "NSimSun";
}
</style>
</head>
<body>
<section>
        <article>
                <h1>招财树</h1>
                <p>招财进宝,日入斗金</p>
                <img src="1.png" alt="Fortune tree">
        </article>
        <article>
                <h1>金元宝</h1>
                <p>敛福生财,兴隆大业</p>
                <img src="2.png" alt="Gold ingot">
        </article>
        <article>
                <h1>锦绣狮</h1>
                <p>心想事成,吉祥如意</p>
                <img src="3.png" alt="Splendid lion">
        </article>
        <article>
                <h1>八卦图</h1>
                <p>日转千阶,源源不断</p>
                <img src="4.png" alt="Eight Diagrams">
        </article>
</section>
</body>
</html>
 | 
 
  |