Skip to main content
SiteIndex
实用工具可以使用

图片和视频宽高比计算器

计算图片、视频或屏幕的宽高比,以及匹配比例的宽度或高度。可选常用比例,也可输入自定义尺寸。

使用指南

交互式工具区

无需注册账号
图片宽高比计算器
Common aspect ratio presets
Platform presets (fill ratio and size)
Calculated height
1080px
Decimal ratio
1.7778:1
Orientation
Landscape
Total pixels
2,073,600
Megapixels
2.07 MP
Preview (true proportions)
1920 × 1080

Use this size in code

aspect-ratio: 16 / 9;
.ratio-box::before { content: ""; display: block; padding-bottom: 56.25%; }
<img src="image.jpg" width="1920" height="1080" alt="" />

The width and height attributes on the img tag let the browser reserve the right space before the image loads, which prevents layout shift (CLS).

图片宽高比计算器是什么?

计算图片、视频或屏幕的宽高比,以及匹配比例的宽度或高度。可选常用比例,也可输入自定义尺寸。

工作原理

计算图片、视频或屏幕的宽高比,以及匹配比例的宽度或高度。可选常用比例,也可输入自定义尺寸。

常见用途

计算图片、视频或屏幕的宽高比,以及匹配比例的宽度或高度。可选常用比例,也可输入自定义尺寸。

使用限制

结果可能因浏览器、网络、输入内容和外部服务而异。本工具仅供参考,不能替代专业诊断或建议。

常见问题
图片宽高比计算器是什么?
计算图片、视频或屏幕的宽高比,以及匹配比例的宽度或高度。可选常用比例,也可输入自定义尺寸。

相关工具