主页
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>