<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Surface Book 3</title>
<style type="text/css">
#div-surface img {
/* 只设置宽不设高可以等比例缩放 */
width: 650px;
}
#div-introduce {
width: 650px;
height: 30px;
/* 垂直居中 */
line-height: 30px;
font-weight: bolder;
background-color: black;
/* 字体向右缩进 */
text-indent: 10px;
color: #0066CC;
/* 透明度 */
opacity: 0.5;
position: relative;
bottom: 30px;
}
</style>
</head>
<body>
<div id="div-surface">
<img src="./book.jpg" />
</div>
<div id="div-introduce">
专为性能而打造
</div>
</body>
</html>