小编Kus*_*ant的帖子

如何在div中使图像响应

我的代码如下:

<div class="abc">
    <div class="bcd">
        <a href="#">
            <img class="img1" width="50" height="50"/>
        </a>
        <a>
            <h3>Some Text</h3>
        </a> 
    </div>
    <div class="bcd">
        <a href="#">
            <img class="img1" width="50" height="50"/>
        </a>
        <a>
            <h3>Some Text</h3>
        </a> 
    </div>
    <div class="bcd">
        <a href="#">
            <img class="img1" width="50" height="50"/>
        </a>
        <a>
            <h3>Some Text</h3>
        </a> 
    </div>
    <div class="bcd">
        <a href="#">
            <img class="img1" width="50" height="50"/>
        </a>
        <a>
            <h3>Some Text</h3>
        </a> 
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

如何使手机(360X640px)和iPad(768X1024px)的图像响应?你能告诉我CSS代码吗?

我必须在移动设备中提供两个图像,在iPad中提供四个图像!

css image responsive-design

11
推荐指数
2
解决办法
7万
查看次数

标签 统计

css ×1

image ×1

responsive-design ×1