IE7 Display: Inline-block Incompatibilities
Internet Explorer 7 fails to recognize the display: inline-block; property, particularly for elements that are not naturally inline. To resolve this issue, apply an IE7-specific CSS hack:
.frame-header { height:25px; display:inline-block; *display: inline; zoom: 1; }
The hack consists of three parts:
To avoid potential conflicts with other browsers, it's advisable to use a separate stylesheet for IE7 through conditional comments:
<!--[if IE 7]> <link rel="stylesheet" href="ie7.css" type="text/css" /> <![endif]-->
The above is the detailed content of How Can I Fix the `display: inline-block` Incompatibility in Internet Explorer 7?. For more information, please follow other related articles on the PHP Chinese website!