html - 高度的功能是什么:这里的自动?
问题描述
我似乎无法确定height:auto;
这里在做什么。
img {
max-width: 100%;
display: block;
height: auto;
}
解决方案
height: auto;
用于让浏览器根据图像的纵横比调整图像的高度。
推荐阅读
- node.js - 为什么我不能在 Laravel 7 中成功运行 npm run dev?
- python - 将方程的解分配给新变量
- python - 创建解码器目标序列
- java - Netty 中的 MessageToMessageCodec 与 MessageToMessageDecoder 和 MessageToMessageEncoder
- mysql - mysql/mariadb 上用户 'root'@'localhost 的访问被拒绝
- jquery - jQuery - 在链中使用上下文?
- excel - 一种在 Excel 文件中获取 vlookup 以使用单元格值在设置目录中搜索 csv.file 然后从 csv 文件返回给定单元格值的方法?
- javascript - ERROR 错误:路由“ViewPayments”的组件必须是 React 组件。例如:
- jquery - 以可见屏幕为中心的弹出框(也向下滚动)
- go - 从属于同一项目的单独包的未定义导入