[英]different positioning between Chrome/Firefox and IE
我有以下布局:-
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?
完全相同Chrome/Firefox?
感谢您的帮助和时间
这将达到目的:
.headerProfileEmail {
clear:both;
float:right;
margin-top: 0px;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.