您好谁能告诉我如何在桌面和移动设备上显示不同的横幅图像。这是我的代码。
HTML:
<div class="row">
<img src="image\bannerimages\Career.png" class="img-responsive careerpage">
<h2 class="careerbannertext">LIFE AT TEKNOTRAIT</h2>
<h2 class="careerbannertext1">Are you fanatically driven and ready to take on some of the best challenges the industry has to offer? </h2>
<h2 class="careerbannertext2">Come join us,be inspired to do the best work of your life!</h2>
</div>
现在在我的桌面版本中它正在显示此图像我需要在移动版本中更改另一个图像。
原文由 user6728960 发布,翻译遵循 CC BY-SA 4.0 许可协议
我无法删除我接受的答案,所以请不要使用它。最好的方法是使用带有来源的标签图片,例如 Ron.Basco post:
我最初接受的答案不好,因为图像将加载到每个设备上: