首页 > bootstrap放置图片时当图片缩小不能自适应网页大小

bootstrap放置图片时当图片缩小不能自适应网页大小

html:

<div id="login-logo-header">
        <img src="images/icon_logo.png" width="auto" height="45px"  style="margin-left:10%;margin-top:6px"/>
        <img src="images/login4.jpg" class="img-responsive" alt="">
    </div>
    <div class="ma0 clearfix small-wrapper" style="max-width: 1200px; width: 100%; ">

css:

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}


width:100%吧


图片在css的background(url)里面,图片在css的background(url)里面,添加了bootstrap,也添加了bootstrap.responsive,图片用的类是img-responsive,,表格暂时没有用类,图片就是有问题不知道怎么做。。


你都用做背景了……和你上面贴的html不一样吧。。

【热门文章】
【热门文章】