<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>背景图片</title>
<style>
div {
width: 300px;
height: 300px;
/* 不要落下 url() */
background-image: url('https://www.dataojocloud.com/dataeye/v1/data/image/get?imageid=61bc5c982ee1bd7d90486745');
}
</style>
</head>
<body>
<div></div>
</body>
</html>
CSS-38:背景图片
最新推荐文章于 2024-07-17 18:42:40 发布