开发者

DOCTYPE XHTML 1.0 issue + Scroll bar is not appearing in IE6

Hii, I'm using the DOCTYPE is DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN开发者_开发知识库" I have set the overflow property of the div is not working in IE 6 but it is taking in IEs higher versions

i.e. I have set like this

<div style='overflow-y: scroll; overflow-x: hidden; height: 370px'></div>


A quick Google search indicates that the overflow property is buggy in IE6. Have you tried either "auto" for either overflow-x and overflow-y?

Unless you're working on a business app that's only compatible with IE6. why are you supporting this version of the browser?


If it works with HTML doctype I’d suggest using plain HTML instead of XHTML. XHTML on the web is mostly broken and unless you really need it (which I doubt), you’d save yourself trouble. For example the HTML5 doctype works as expected in all browsers and you can actually remember it:

<!DOCTYPE html>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜