做一个自适应的图片,海报,做成简单的自适应网页如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>自定义文字</title>
<style>
* {
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<img style="width: 100%; display: block;"
src="插入你制作的图片地址"
alt="自定义文字" />
</body>
</html>
演示效果