文章详情页
bootstrap怎么使图片垂直居中?
浏览:103日期:2024-06-12 08:44:04
问题描述
bootstrap怎么使图片垂直居中?
<div class="mbrand"> <a href="#"><img src="img/mbarnd1.gif" class="img-responsive center-block"/></a> <a href="#"><img src="img/mbarnd2.gif" class="img-responsive center-block"/></a> <a href="#"><img src="img/mbarnd3.gif" class="img-responsive center-block"/></a> <a href="#"><img src="img/mbarnd4.gif" class="img-responsive center-block"/></a> <a href="#"><img src="img/mbarnd5.gif" class="img-responsive center-block"/></a></div>
问题解答
回答1:把图片添加css类img-responsive center-block
相关文章:
1. APP上传到电脑服务器,出现数据上传不完整的问题2. javascript - iframe 为什么加载网页的时候滚动条这样显示?3. tp 6.0 数据查询,求教!4. html5 - <!doctype html public "storage"> 是什么意思5. java里自定义类重载ClassLoader有什么用?6. git - 使用淘宝npm安装hexo出现问题?7. 七牛云存储 - 七牛上传文件后获取访问链接java8. java - mongodb分片集群下,count和聚合统计问题9. javascript - html这种样式怎么做出来?10. javascript - nodejs 如何同步执行某些模块函数?
排行榜
