Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的小提琴:http: //jsfiddle.net/pUuFb/
如何将第三个元素与前两个元素对齐?我试过vertical-align: bottom了,但它不起作用。这似乎是我错过的一件非常明显的事情。有谁知道发生了什么?
vertical-align: bottom
删除类date
date
<ul> <li>One</li> <li>Two</li> <li> <div> July 2nd </div> </li>
将列表项和 div 的 CSS 更改为:
li { margin: 0 20px 0 5px; display: inline; } div { display: inline; }
jsFiddle 示例