码迷,mamicode.com
首页 > Web开发 > 详细

编写css让div2在div1的右下角?

时间:2014-09-18 23:38:24      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:style   color   io   os   div   on   c   html   ad   

<style>
#div1{
width:200px;
height:200px;
background-color:#F00;
}
#div2{
width:50px;
height:50px;
background:#FF0;
position:relative;
left:75%;
top:75%;

}
</style>
</head>

<body>
<div id="div1">

<div id="div2"></div>

</div>

<body>

<html>

编写css让div2在div1的右下角?

标签:style   color   io   os   div   on   c   html   ad   

原文地址:http://www.cnblogs.com/qinxuemei/p/3980238.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!