跑步 ”
×
改变方向
在 Codepen 上打开
更改主题,深色/浅色
<!DOCTYPE html> <html> <head><meta http-equiv="content-security-policy" content="script-src 'none'"> <style> img { width: 200px; height: 300px; object-fit: cover; } </style> </head> <body> <h2>Использование object-fit: cover;</h2> <img src="../images/paris.jpg" alt="Париж" width="400" height="300"> </body> </html>