Skip to content

Instantly share code, notes, and snippets.

@caok
Created January 27, 2014 06:08
Show Gist options
  • Save caok/8643896 to your computer and use it in GitHub Desktop.
Save caok/8643896 to your computer and use it in GitHub Desktop.
如何让元素位于DIV内的底部
<div id="a">
<ul>
<li class="b">位于底部</li>
</ul>
</div>
<style>
#a{
width:200px;
height:200px;
position:relative;
}
.b{
position:absolute;
bottom:0px;
}
</style>
@caok
Copy link
Author

caok commented Nov 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment