文件名称:react-fitted-img:用于拟合和定位图像的React组件
文件大小:8KB
文件格式:ZIP
更新时间:2024-08-24 04:16:33
JavaScript
react-fitted-img React 组件,用于拟合和定位具有跨浏览器支持的图像。 用法 import FittedImg from 'react-fitted-img' ; < FittedImg xss=removed xss=removed xss=removed xss=removed> ; 道具 要嵌入的图像的src必需URL ( ) alt可选文本描述( ) fit可选设置如何调整图像大小以适合其容器。 支持值: fill (默认)、 contain 、 cover和none 。 height可选图像的固有高度(以像素为单位)。 ( ) position可选图像内容在元素框内的对齐方式。 支持值。 width可选图像的固有宽度(以像素为单位)。 ( ) :information: 额外的道具将被传递。 限制 对
【文件预览】:
react-fitted-img-master
----.babelrc(220B)
----rollup.config.js(486B)
----.lintstagedrc(49B)
----package.json(2KB)
----.prettierrc(26B)
----.prettierignore(29B)
----jest.config.js(75B)
----LICENSE(1KB)
----src()
--------index.js(2KB)
--------__tests__()
----.huskyrc(53B)
----.gitignore(57B)
----CHANGELOG.md(3KB)
----README.md(2KB)