We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://xy-ui.codelabo.cn/docs/#/xy-tips
Description
The text was updated successfully, but these errors were encountered:
666
Sorry, something went wrong.
是用css实现的话,有个非常大的缺陷就是会被外层某个未知位置的overflow:hidden遮住,调试起来非常困难。不知道用js实现难不难,还是说css还有可以突破的地方?
js实现也不复杂,主要有一个滚动问题,js一般会生成在body上,然后相对于body定位,如果页面内有局部滚动,那么定位就会出问题 css实现可能有一些局限性(比如overflow问题,不过使用者可以避免),但总体而言还是最优的实现方法。
js
body
css
overflow
其实这一整套组件很多地方都是css优先实现,实在不行才会考虑js,适用性更好。
No branches or pull requests
https://xy-ui.codelabo.cn/docs/#/xy-tips
Description
The text was updated successfully, but these errors were encountered: