table表格自适应读取的图片大小
#1692
-
|
大佬们好,我使用的是layui的表格组件,我读取了图片想加载到table里去。我需要这个单元格的大小和图片适应(贴合)。 |
Beta Was this translation helpful? Give feedback.
Answered by
LSL1618
Mar 11, 2024
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
代码如上。麻烦大家了!! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
试试自定义行高 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zd178
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

试试自定义行高
lineStyle: 'height: 50px;,https://layui.dev/2.7/docs/modules/table.html#lineStyle,注意一下动态行高和固定列是冲突的。