我有以下布局:-
html:-
<header>
<div class="content-wrapper">
<div id="headerContainer">
<div class="headerProfileNotifications">
<img src="Images/" alt="notification" />
</div>
<div class="headerProfilePhoto">
<img src="Images/" alt="profile_photo" />
</div>
<div class="headerProfileDetails">
<div class="headerProfileName">John Smith</div>
<div class="headerProfileEmail">john.smith@someemail.co.uk</div>
</div>
</div>
</div>
</header>
和 css:-
header {
padding-bottom: 5px;
}
#headerContainer {
height: 33px;
background-position: 10px 2px;
padding-top: 2px;
}
.headerProfileNotifications {
float: right;
height: 22px;
width: 29px;
padding-right: 4px;
margin: 5px;
}
.headerProfilePhoto {
float: right;
height: 33px;
width: 22px;
margin: 5px;
}
.headerProfileDetails {
float: right;
padding-right: 4px;
font-size: 11px;
}
.headerProfileName {
margin-top: 2px;
float: right;
}
.headerProfileEmail {
margin-top: 0px;
}
但是它在 Chrome/Firefox 中看起来是一样的,
并且它看起来应该是这样,但是在 IE 中,
它显示不同。
我必须将什么 css
应用到 IE
才能看起来与 Chrome/Firefox 完全一样?
感谢您的帮助和时间
最佳答案
这样就可以了:
.headerProfileEmail {
clear:both;
float:right;
margin-top: 0px;
}
关于html - Chrome/Firefox 与 IE 的不同定位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15611912/