我需要将所有文本<a href="#"><strong>Home</strong><span>This is a home</span></a>
放在底部,但 css 代码不起作用。
css
a { text-decoration: none; color: #777; }
.menu {
margin: 0;
list-style: none;
}
.menu li {
position: relative;
display: inline-block;
}
.menu li a {
position: relative;
height: 100px;
display: block;
width: auto;
border: 1px solid #eee;
background: #fbfbfb;
padding: 10px 20px;
}
.menu li a span,
.menu li a strong {
display: block;
border-bottom: 1px solid #bfbfbf;
vertical-align: bottom;
}
这里的实时代码http://jsfiddle.net/wgjfL/
提前致谢