如何在页面右上角放置div [英] How to place div in top right hand corner of page
本文介绍了如何在页面右上角放置div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用css将div浮动到页面的右上角?我想浮动 topcorner
div如下:
How do you float a div to the top right hand corner of a page using css? I want to float the topcorner
div which is below:
<p><a href="login.php">Log in</a></p>
<div class="topcorner"><a href="home.php">Back to Home</a></div>
登录在左边角落,它的时刻,我想要家庭链接放在其他角落,
log in goes in left hand corner which it does at moment, I want home link to be placed in other corner,
推荐答案
风格是:
<style type="text/css">
.topcorner{
position:absolute;
top:0;
right:0;
}
</style>
希望它能工作。
感谢
hope it will work. Thanks
这篇关于如何在页面右上角放置div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文