<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>背景位置-背景图像固定</title>
<style>
body {
background-color: pink;
background-image: url(image/批注\ 2020-08-14\ 100704.png);
background-attachment: fixed;//背景图像固定,字体可以滚动
}
</style>
</head>
<body>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
<p>zzf</p>
</body>
</html>
CSS背景位置-背景图像固定
最新推荐文章于 2024-06-14 11:43:35 发布