主頁
CSS
RWD 圖片
Tryit:響應式影像
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> img { max-width: 100%; height: auto; } </style> </head> <body> <img src="img_chania.jpg" width="460" height="345"> <p>Resize the browser window to see how the image will scale when the width is less than 460px.</p> </body> </html>