主頁
CSS
CSS 樣式圖片
Tryit: 建立響應式圖片
執行 ❯
建立您
自己的
網站
×
改變方向
儲存程式碼
改變主題, 深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> img { max-width: 100%; height: auto; } </style> </head> <body> <h2>Responsive Image</h2> <p>Responsive images will automatically adjust to fit the size of the screen.</p> <p>Resize the browser window to see the effect:</p> <img src="img_5terre_wide.jpg" alt="Cinque Terre" width="1000" height="300"> </body> </html>