作者:lovely夏的宠儿 | 来源:互联网 | 2023-05-17 14:46
IamusingsvgimageasbackgroundandIamstretchingSVGimagethroughbackground-size.Iwantit
I am using svg image as background and I am stretching SVG image through background-size. I want it to be strech only width wise. Its working perfectly fine in firefox, IE9 + but chrome. Please suggest me how i can achieve it.
我使用svg图像作为背景,我通过背景大小拉伸SVG图像。我希望它只是宽度明智的拉伸。它在firefox,IE9 +但Chrome中工作得非常好。请建议我如何实现它。
.homecallouts ul li {
background-image: url('blue_arow_callout.svg');
background-size: 100% 100%;
width: 21%;
height: 42px;
see the jsbin code http://jsbin.com/uvijuc/4/
请参阅jsbin代码http://jsbin.com/uvijuc/4/
when i resize in firefox only width stretch but in chrome both width and height are stretching. I want only width to stretch.
当我在firefox中调整大小只有宽度拉伸但在镀铬时宽度和高度都拉伸。我只希望宽度伸展。
5 个解决方案