|
|
发表于 2019-11-1 10:57:01
|
显示全部楼层
come on~
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title></title>
- <style type="text/css">
- /* * {
- margin: 0;
- padding: 0;
- } */
- section {
- /* width: 1000px;
- background: #95a5a6;
- text-shadow: 0,0,1px,rgb(0, 0, 0,.4) inset; */
- box-sizing: border-box;
- padding: 33px;
- }
- article {
- width: 49%;
- float:left;
- position:relative;
- }
- img {
- position:absolute;
- top:25px;
- left:170px;
- }
- article:first-child {
- margin-right: 2%;
- }
- h1 {
- font-size:33px;
- margin-bottom:13px;
- font-family:"NSimSun";
- }
- p {
- font-size:22px;
- color:sandybrown;
- font-family:"KaiTi";
- }
- h1,p {
- width:66%;
- margin-left:33%;
- }
- /* 清除浮动 */
- /* section::after{
- content: "";
- display: table;
- clear: both;
- } */
-
- </style>
- </head>
- <body>
- <section>
- <article>
- <img src="1.jpg" alt="drumsticl_1">
- <h1>蓝鸡腿</h1>
- <p>穷爸爸:“你要好好学习,以后就能找一份好工作养活自己。”驱动学习的力量是恐惧。</p>
- </article>
- <article>
- <img src="2.jpg" alt="drumsticl_2">
- <h1>红鸡腿</h1>
- <p>富爸爸:“你要好好学习,以后就能开自己的公司,创造很多就业机会给别人。驱动力量是爱,好好学就会帮到更多的人。</p>
- </article>
- </section>
- </body>
- </html>
复制代码 |
|