在DIV里有一几行文字,在其中一行有一张比文字的高要大的图片,怎么使该行文字对齐图片的上边缘,其它行文字正常显示
<html>
<head>
<style>
div{
max-width: 180px;
max-height:80px;
font-size: 16px;
word-break:break-all;
background: #ccc;
overflow: auto;
vertical-align: top;
}
</style>
<script>
</script>
</head>
<body>
<div>11111111<img src="http://img.baidu.com/hi/jx2/j_0037.gif">111111111111111111111
1111111111111111111111111</div>
</body>
</html>
这样是不行的??另外不知为什么会出现图里的空格
http://codepen.io/anon/pen/qEOYJX
你说的是这个意思么?