简体   繁体   English

使用jumbotron引导程序进行Mobile的图像交换

[英]Image swap for Mobile using jumbotron bootstrap

What is the most efficient way to swap out an image for mobil when using a jumbotron in bootstrap? 在引导程序中使用超大加速器时,将图像换成mobil的最有效方法是什么? I dont like the way the image looks on mobil size when using img-responsive. 我不喜欢使用img响应时图像在mobil大小上的显示方式。 I have spent all day researching srcet and find that it does not provide a solution any better than img-responsive. 我花了一整天的时间研究srcet,发现它没有提供比img响应更好的解决方案。 There has to be a way to swap out images on different devices. 必须有一种方法可以交换不同设备上的图像。

Here is the site I am working on http://janeanesanborn.com/home.htm 这是我正在使用的网站http://janeanesanborn.com/home.htm

Thanks! 谢谢!

Maybe try using the background-image:url('pic.jpg') CSS property instead of the HTML element. 也许尝试使用background-image:url('pic.jpg') CSS属性而不是HTML元素。 That way you can change it based on responsive media queries. 这样,您可以根据响应媒体查询来更改它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM