Skip to content

Instantly share code, notes, and snippets.

@welkang
Created September 24, 2012 09:05
Show Gist options
  • Save welkang/3775042 to your computer and use it in GitHub Desktop.
Save welkang/3775042 to your computer and use it in GitHub Desktop.
Browser Consistent
//浮动双边距
#imfloat {
float: left;
margin: 5px;/*IE下理解为10px*/
display: inline;/*IE下再理解为5px*/
}
//IE对min-height/width的支持完善
#box {
width: 80px;
height: 35px;
}
html > body #box {
width: auto;
height: auto;
min-width: 80px;
min-height: 35px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment