3-3练习
来源:3-3 编程练习
qq_紾悕_1
2019-05-09 20:50:19
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>移动端</title>
<style>
*{
margin:0px;
padding:0px;
}
/*补充代码*/
.box{
width:100%;
height: 400px;
display: flex;
overflow: hidden;
}
.box-item{
flex:1;
margin:10px;
text-align:center;
box-shadow:1px 1px 1px 1px #999;
}
.box-item img{
display:block;
border-radius:50%;
margin:20px auto;
}
.box-item p{
width:80%;
font-size:12px;
margin:0 auto;
overflow:hidden;
}
</style>
</head>
<body>
<div class="box">
<div class="box-item">
<img src="http://climg.mukewang.com/591411a400018ad902000200.jpg" alt="">
<h1>快乐动起来呀</h1>
<p>先后在360、去哪儿网、今日头条任资深前端工程师,在业务开发和工程架构方面有较多实战经验。</p>
</div>
<div class="box-item">
<img src="http://climg.mukewang.com/591411b400010aa702000200.jpg" alt="">
<h1>7七月</h1>
<p>作为微信小程序第一波开发者,他受邀编写小程序开发书籍,不久就会出版,他喜欢写代码带来成就感。</p>
</div>
<div class="box-item">
<img src="http://climg.mukewang.com/591411c0000199be02000200.jpg" alt="">
<h1>Geely</h1>
<p>Geely,丰富的互联网项目经验,公司内部技术讲师,热爱技术,乐于分享。教学格言:把复杂的技术简单化,简单的技术极致化</p>
</div>
<div class="box-item">
<img src="http://climg.mukewang.com/591411b400010aa702000200.jpg" alt="">
<h1>Scott</h1>
<p>是国内最早接触 Node.js 的工程师,也是最早用 Node.js 做开发的工程师之一,拥有大量 Node.js 全站开发经验。</p>
</div>
<div class="box-item">
<img src="http://climg.mukewang.com/591411cb0001483f02000200.jpg" alt="">
<h1>moocer</h1>
<p>曾混迹于企业应用领域,后转战电商,现奋战于互联网教育行业,转眼间已匆匆数年,喜爱技术甚于自己,至今不悔。感天地之广大,岁月之蹉跎,若能重来,仍代码。</p>
</div>
</div>
</body>
</html>
1回答
你好,整体布局是不错的。效果图中浏览器缩小的时候,图片会跟着缩小,可以给图片添加上百分比的宽度。
自己再试试,祝学习愉快!
相似问题