39,087
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html>
<head>
<style>
div{width:100px;height:100px;background-color:red}
@media (max-width: 400px)
{
}
@media (min-width: 401px) and (max-width: 991px)
{
div{width:200px;background-color:green}
}
@media (min-width: 992px)
{
div{width:400px;background-color:black}
}
</style>
</head>
<body>
<div></div>
</body>
</html>
.wrap img{
width:100%;
display:block;
margin:0 auto;
}
.bootomcopy{width:100%;margin:0 auto;max-width:750px;max-height:110px; position:relative;}
.bootomcopy img{width:100%;height:100%;}
img-responsive
这个类型的,这跟位置居中本来就没有关系。你不会居中,这跟这个 img-responsive没有关系。