主頁
HTML
HTML 響應式
Tryit:響應式影像
執行 ❯
建立您
自己的
網站
×
改變方向
儲存程式碼
更換主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <h2>Responsive Image</h2> <p>When the CSS width property is set in a percentage value, the image will scale up and down when resizing the browser window. Resize the browser window to see the effect.</p> <img src="img_girl.jpg" style="width:100%;"> </body> </html>