前端学习(41):背景实现视觉差效果
生活随笔
收集整理的這篇文章主要介紹了
前端学习(41):背景实现视觉差效果
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
首先準備三張圖片
<!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>#div1{width: 1400px;height: 800px; background-image:url(./img/001.jpg) ;background-attachment: fixed;}#div2{width: 1400px;height: 800px; background-image:url(./img/002.jpg) ;background-attachment: fixed;}#div3{width: 1400px;height: 800px; background-image:url(./img/003.jpg) ;background-attachment: fixed;}</style> </head> <body><div id="div1"></div><div id="div2"></div><div id="div3"></div> </body> </html>運行結果
下拉
下拉
總結
以上是生活随笔為你收集整理的前端学习(41):背景实现视觉差效果的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: coreseek mysql.sock_
- 下一篇: shields 徽标_到处都有平面徽标