图片的高度为什么是 自适应浏览器 而不是它外层的div块
html吧
全部回复
仅看楼主
level 1
浏览器缩小之后 只能宽度缩小 高度依旧不变 如何做到width height都能自适应
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>窗口特效</title><style type="text/css"> .color{ min-height: 300px; min-width: 400px; max-width: 1500px; background-color: #eee; margin:0 auto; } .img1{width: 100%;height:100%;}</style></head>
<body> <div class="color"> <div><img class="img1" src="images/bg_nav_sprite.png" width="1600px" height="600px"></div> </div></body></html>[疑问]
2013年07月12日 03点07分 1
level 15
up
2013年07月16日 08点07分 2
没懂 这个 up??
2013年07月17日 01点07分
回复 ql33_ :顶
2013年07月17日 04点07分
回复 匰身贵族 :大神都是 一字千金。。。。。。。。。。。。
2013年07月27日 03点07分
回复 ql33_ :我刚入门///
2013年07月27日 04点07分
level 9
100%
2013年07月17日 07点07分 3
1