【发布时间】:2015-03-22 18:50:14
【问题描述】:
我正在制作一个 android 应用程序,这个 html 文件位于 assets 文件夹中。 我想将一条垂直直线对齐到标题的左侧,就像在雅虎新闻摘要应用程序中所做的那样。请参阅此处的屏幕截图http://bit.ly/1BRljIX。
我尝试使用下面的代码:
<img style="display: ;" src="sidebar_leader.png" width="2%"/>
<h3 style="display: inline;">We want sport to be safe, we want sport to be fun and we want to ensure that no matter what sport young people are involved in, that it takes place in the spirit of 'fair play'.</h3>
但是,这只是将图像与标题的第一行对齐,有人可以帮忙吗?
【问题讨论】:
标签: android html image alignment