开发者

IE, Firefox mismatch with div attributes

开发者 https://www.devze.com 2023-04-01 18:33 出处:网络
In Firefox, div takes the entire space available horizontally and starts from a new row if we don\'t give float:left, while in IE it 开发者_JAVA技巧doesn\'t.Have you set your doc type in the IE header

In Firefox, div takes the entire space available horizontally and starts from a new row if we don't give float:left, while in IE it 开发者_JAVA技巧doesn't.


Have you set your doc type in the IE header?

e.g

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0

精彩评论

暂无评论...
验证码 换一张
取 消