DIV内图片居中显示
2013-08-13 20:51
239 查看
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新建网页 1</title> <style> div { border:1px solid red; text-align:center; } img { margin:0 auto } </style> </head> <body> <div><img src="http://www.17cha8.cn/images/default/logo.gif"></div> </body> </html>
相关文章推荐
- HTML5 - div 添加图片显示居中
- 如何设置图片、文字在容器(div)中垂直居中的显示?
- canvas 使绘制的图片在div 居中显示 ,解决绘图模糊问题
- 让div标签里面的img标签的图片在任意分辨率下居中显示,两边多余的隐藏掉
- <DIV>里面实现图片居中显示
- 纯CSS如何让图片以及DIV垂直居中显示?
- html基础 img标记 设置图片的宽度和边框 利用div使图片居中显示
- html基础 img标记 设置图片的宽度和边框 利用div使图片居中显示
- CSS 图片在DIV中垂直居中的显示方法
- div中图片(大图)居中显示:table-cell;max-width关于i8 bug
- div中添加背景图片及居中显示
- 尺寸不固定的图片在div中垂直居中并完全显示
- 如何设置图片、文字在容器(div)中垂直居中的显示?
- 图片等比例缩放 居中显示到div 超出div的部分影藏
- div固定高度中图片垂直居中显示
- div+css中如何让图片垂直居中显示
- 当css样式是绝对定位时,让DIV居中显示
- Web_CSS_DIV内部垂直居中显示
- 移动端使用让图片或者div垂直居中
- 图片与DIV相互垂直居中