Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css] 1.实现不使用 border 画出 1px 高的线,在不同浏览器的标准模式与怪异模式下都能保持一致的效果。 #22

Open
qiilee opened this issue Sep 27, 2019 · 2 comments
Labels

Comments

@qiilee
Copy link
Member

qiilee commented Sep 27, 2019

答案:

<div style="height:1px;overflow:hidden;background:red"></div>
@qiilee qiilee added the CSS label Sep 27, 2019
@Lonely-blue
Copy link

这个overflow:hidden再这里具体作用是什么呢?

@luhaifeng666
Copy link

这个overflow:hidden再这里具体作用是什么呢?

防止不同浏览器表现形式不一样,可能会出现滚动条

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants