Hints
HTML <meta> tag is helps to set compactibility mode to page header information. http-equiv="X-UA-Compatible" and content is IE=7,IE=8 or IE=9, This is the way of setting compactibility mode in Internet Explorer.
Example:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
</head>
<body>
<div style="display:inline-block;background-color: yellow;">data</div>
</body>
</html>
|
Note
DOCTYPE tag should be declared to get document mode IE8 working.
|