即时通讯在CSS中的初学者,我对此感到困惑2 ...谁能解释我背景附件有什么区别:固定和位置:固定?? ?背景附件之间的区别:固定和位置:固定
-1
A
回答
0
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url('w3css.gif');
background-repeat: no-repeat;
background-attachment: fixed;
}
p{
position: fixed;
color:Red;
}
</style>
</head>
<body>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>If you do not see any scrollbars, try to resize the browser window.</p>
</body>
</html>
背景附件:固定是用于定位图片其中如,位置是:固定;适用于p,span,div等元素。
+0
我知道了...非常感谢你...))) –
+0
不客气:))对不起,我误解了第一个问题。这就是为什么我评论说这不是一个问题:( –
+0
不要担心兄弟: ) –
相关问题
- 1. 位置固定的背景
- 2. 背景位置:固定
- 3. HTML背景固定位置
- 4. 背景固定位置
- 5. 使背景固定(固定)
- 6. 背景附件固定的替代品
- 7. Android - 固定/固定背景之间的活动?
- 8. iOS上的固定位置背景
- 9. 背景附件:固定?在iPhone上
- 10. CSS“背景附件:固定”非常laggy
- 11. 背景附件滚动与固定
- 12. 固定背景附件CSS/XHTML/jQuery
- 13. 替代背景附件:固定
- 14. CSS背景附件固定 - 流出?
- 15. 铬 - 背景附件固定闪烁
- 16. CSS背景附件滚动/固定和背景大小覆盖
- 17. 固定位置div背景问题
- 18. Textarea背景位置固定问题
- 19. 位置固定背景高度100%
- 20. 固定位置背景 - Chrome问题
- 21. 位置:固定有背景图片?
- 22. 将背景滚动到固定位置
- 23. CSS背景位置固定到父母
- 24. 背景混合模式问题与固定的背景附件
- 25. 无背景附件缩放背景图片:固定?
- 26. 背景图像消失与背景附件固定属性
- 27. 位置固定和背面可见性
- 28. 计算用户位置和固定位置之间的距离
- 29. CSS体固定的背景
- 30. 固定背景的网页
那么它是什么? –
发布了一个答案,希望你明白了吗? –
为什么不在WEB上搜索'background-attachment:fixed'和'position:fixed',看看你能找到什么? –