Home >Web Front-end >CSS Tutorial >Overflow OPREA_CSS/HTML

Overflow OPREA_CSS/HTML

WBOY
WBOYOriginal
2016-05-16 12:10:341743browse

Overflow is supported in both IE and non-IE browsers! But when I was making something yesterday, a problem arose!
This is how the CSS starts:

Copy the code The code is as follows:

# tmd{border:1px solid #9F9F9F;padding:2px 5px;height:175px;width:140px;overflow-y:scroll;}

This is the content:
Copy code The code is as follows:

I don’t want a horizontal scroll bar. I don’t want a horizontal scroll bar. I just want a vertical scroll bar. It’s ok, so I wrote it like this “overflow-y”;
It works in IE and FIREFOX, but not in OPREA;
’s scroll bar, I just want a vertical scroll bar.
That’s it, so I wrote it like this “overflow-y”;
It works in IE and FIREFOX
, but not in OPREA;


Since overflow-y is a proprietary attribute of IE, it is not supported in OPREA. If it is not used this way in IE, there is no way to remove the horizontal scroll bar!
So we have to solve OPREA again, and we can only recognize it by adding overflow:auto;OPREA!
See the effect:

[Ctrl+A to select all Note: If you need to introduce external Js, you need to refresh to execute it]
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn