[英]How to fit the image in fieldset Html
I want to fit the image inside the fieldset. 我想使图像适合字段集。
here is code. 这是代码。
<fieldset>
<legend>abcas</legend>
<img src="red.PNG" />
</fieldset>
upper side of fieldset is empty.Image can not fit inside it, how can i fit it. 字段集的上侧是空的。图像无法容纳在其中,我该如何容纳它。
If I remove the legend then it fit in it. 如果我删除图例,那么它就适合其中。
I tried your code on Fiddle and it works fine, it does fit. 我在Fiddle上尝试了您的代码,它工作正常,很合适。
http://jsfiddle.net/tHWz8/ http://jsfiddle.net/tHWz8/
<fieldset>
<legend>abcas</legend>
<img src="http://placehold.it/350x150" />
</fieldset>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.