I'm using a div with a class to show an image. The div also has style="display:table-cell" (and it's in a table-row). For some reason the image is being stretched vertically to fill the table-cell. When I remove display:table-cell the image looks good. Can I fix this with CSS? How?
Here's some pseudo code:
div class="image" style="display:table-cell"
-webkit-border-image: url"button.png") 0 5 0 5;
以上就是How can I prevent an image being stretched to fill a display:table-cell?的详细内容，更多请关注web前端其它相关文章！