My application rendering well in IE9 Quirks Mode but not in standard mode.

For example: Rendering div background image in Quirks mode but not in standard mode.

Image-1 Quirks Mode

Image-2 Standard Mode

What should I do to fix this problem?

有帮助吗?

解决方案 2

I changed the CSS as follows.

display: inline;

to

display: inline-block;

It fixed my problem.

其他提示

Preferably use the Strict doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

validate the html by w3c: http://validator.w3.org/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top