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

Adjacent ancestor selector does not work #1

Open
zhangxinxu opened this issue Jul 16, 2013 · 0 comments
Open

Adjacent ancestor selector does not work #1

zhangxinxu opened this issue Jul 16, 2013 · 0 comments
Labels

Comments

@zhangxinxu
Copy link
Owner

.container > p { color: red; }
<div class="container ">
    <p>Hello, simpScroller</p>
</div>

Then apply simpScroller(document.querySelector(".container ")) method, the color of the text in <p> is not red.

Because simpScroller will wrap a new <div>.

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

1 participant