【发布时间】:2013-12-21 20:55:03
【问题描述】:
我想在一张图片旁边放两行文字,有点像这样
_________
| | Line one of text
| image |
| | Line two of text
---------
这是我目前的代码
<p style="color: #fff;"><img src="assets/image.png"><span style="">Line one of text</span>
<br>
<span class="ban2">Line 2 of text</span></p>
.banner p {
font-family: "Gentium Basic";
font-size: 19px;
text-align: center;
color: #aaa;
margin-top: -10;
display: block;
}
.banner img {
float: center;
margin: 5px;
}
.banner span {
padding-top: 50px;
font-size: 17px;
vertical-align:top;
}
.banner .ban2 span {
padding-top: 50px;
font-size: 17px;
vertical-align:top;
}
但目前它是这样做的:
_________
| | Line one of text
| image |
| |
---------
Line two of text
我浏览了整个网络,但无法弄清楚如何做到这一点,非常欢迎任何帮助。
【问题讨论】: