简体   繁体   English

水平滚动和垂直滚动

[英]Horizontal scrolling and vertical scrolling

Is it possible to have both for one site while using the anchor tags? 使用定位标记时,一个网站可能同时拥有两个网站吗?

I have already set up a website that does horizontal scrolling for each parent page. 我已经建立了一个网站,对每个父页面进行水平滚动。 Some of these parent pages has child pages in sections that I will like to have scroll vertically to on that page with a sub menu on top. 其中一些父页面的子页面部分中,我希望在该页面上垂直滚动至该页面,并在其顶部放置一个子菜单。

I know I will have to use Javascript for this, but I was wondering what I need to do in the function to differentiate the horizontal scrolling for the parent pages with the vertical scrolling for the parent page's sub sections. 我知道我必须为此使用Javascript,但是我想知道我在函数中需要做什么以区分父页面的水平滚动与父页面的子部分的垂直滚动。

Have you looked at Scroll Converter? 您看过Scroll Converter吗?

https://github.com/koggdal/scroll-converter https://github.com/koggdal/scroll-converter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM