添加背景图片到网页 - HTML 代码示例
<p><%@ page contentType='text/html;charset=UTF-8' language='java' %></p>
<html>
<head>
<title>添加背景图片到网页</title>
<style>
body {
background-image: url('E:\wenjian\Dict\background.jpg');
/* 设置背景图片 */
background-repeat: no-repeat;
/* 不重复 */
background-size: cover;
/* 覆盖整个页面 */
}
</style>
</head>
<body>
<img src='E:\wenjian\Dict\q.png'>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/oYYU 著作权归作者所有。请勿转载和采集!