我需要帮助移动配置文件选项div。 这是一张图片,所以我可以向您展示我的意思,代码在图像下方提供。如何将底部div移到顶端的底部
的index.html
<div id="page">
<div id="content">
<div id="info">
<div id="profile" name="picture">
<img src="https://scontent-frt3-1.xx.fbcdn.net/v/t1.0-9/17021559_243918039403378_4935600322061460678_n.jpg?oh=aa472121820d78b6116c91d47557bce6&oe=59738E5C" name="profile" />
<img src="https://scontent-frt3-1.xx.fbcdn.net/v/t1.0-9/17098689_244217759373406_3036940291705168436_n.jpg?oh=5f7b2ead37fdec3c2b13fa60fe431a0c&oe=5924FEA8" name="frontpage" />
</div>
<div id="menu" name="profile-name">
Random Guy
</div>
<div id="menu" name="profile-options">
Hi
</div>
<div id="personal">
<ul>
<li>Email: [email protected]</li>
<li>Password: *****************************</li>
<li>Country: Bosnia & Herzegovina</li>
<li>City: not choosen</li>
<li>Address: not choosen</li>
<li>Phone number: not choosen</li>
</ul>
</div>
</div>
</div>
</div>
的style.css
#page #content #info #profile[name="picture"]
{
width:700px;
}
#page #content #info #profile[name="picture"] img[name="profile"]
{
width:128px;
height:128px;
}
#page #content #info #profile[name="picture"] img[name="frontpage"]
{
width:572px;
height:128px;
margin-left:-4px;
}
#page #content #info #personal
{
width:698px;
}
#page #content #info #menu[name="profile-name"]
{
background-color:#d8d8d8;
width:116px;
height:48px;
max-width:116px;
max-height:48px;
border:0px;
padding:6px;
word-wrap:break-word;
margin-top:-5px;
}
#page #content #info #menu[name="profile-options"]
{
background-color:#d8d8d8;
width:572px;
height:48px;
border:0px;
margin-top:-5px;
}
我怎样才能做到这一点不使用任何位置命令或保证金,我试过左:0像素和顶部: 0px但没有工作。
谢谢老兄,你救了我的时间! –