网页设计问题 background-attachment: fixed;为什么加入这句话图片就不见了,不加就看得到。
<!DOCTYPEhtml><html><head><metacharset="utf-8"><title>边框</title><style>.cla1{width:90...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>边框</title>
<style>
.cla1{
width: 900px;
height:800px;
background: red url("ima/3.jpg") right 30px no-repeat ;
background-attachment: fixed;//!!!这里
}
</style>
</head>
<body>
<div class="cla1"></div>
<div></div>
<div></div>
</body>
</html> 展开
<html>
<head>
<meta charset="utf-8">
<title>边框</title>
<style>
.cla1{
width: 900px;
height:800px;
background: red url("ima/3.jpg") right 30px no-repeat ;
background-attachment: fixed;//!!!这里
}
</style>
</head>
<body>
<div class="cla1"></div>
<div></div>
<div></div>
</body>
</html> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询