在一个表格td
里面放了一个img
因为高度宽度比例不确定,所以只能固定高度,宽度自适应,但是td
的宽度始终比img
要宽得多,怎么才能让td
的宽度就等于img
的宽度?
巴扎黑2017-04-17 11:52:29
If you want to make td and img have the same width and height, just set the width or height of td, and then insert the width=100% or height=100% of img to make the height or width adaptive, so that img will be You can open the TD.