Flexbox 悬挂式布局

2018-01-02 13:34:00
admin
原创
456
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Flexbox 悬挂式布局</title>
	
	<style>
.Media {
  display: flex;
  align-items: flex-start;
}

.Media-figure {
  margin-right: 1em;
}

.Media-body {
  flex: 1;
}
	</style>
</head>
<body >
<div class="Media">
  <img class="Media-figure" src="http://www.ybao.org/data/upload/201801/f_e70195b8c7f69133ee9b7397db7c2929.png" alt="">
  <p class="Media-body">悬挂式布局

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ac nisl quis massa vulputate adipiscing. Vivamus sit amet risus ligula. Nunc eu pulvinar augue.</p>
</div>
</body>
</html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络