主頁
CSS
RWD 圖片
嘗試:根據裝置寬度更改背景圖片
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> /* For device width smaller than 400px: */ body { background-repeat: no-repeat; background-image: url('img_smallflower.jpg'); } /* For device width 400px and larger: */ @media only screen and (min-device-width: 400px) { body { background-image: url('img_flowers.jpg'); } } </style> </head> <body> </body> </html>