横向滚动 WordPress 网站
我被要求为 Wordpress 设计一个类似于此的横向滚动网站
网站。每个帖子并排放置在页面上。
我想知道是否有一行 PHP 可以添加到 page.php 中,以允许正常的垂直滚动网站水平滚动?据我所知,没有使用 jQuery。 。 。 。 。
我已经寻找了无数的 WordPress 主题,但似乎找不到用于水平滚动的相关 php 片段。对于英国插画家/图形设计师来说,这似乎是一种相当常见的布局。有谁有任何想法如何实现这一目标?
谢谢
I have been asked to design a side scrolling site for Wordpress similar to this
site. Each post is positioned side by side on the page.
Im trying to work out if there is a line of PHP that i can add to page.php that will allow a normal vertical scrolling site to horizontal scroll ?? as far as I'm aware there is no jQuery used . . . . .
I've looked for countless amounts of Wordpress themes but can't seem to find the relevant piece of php for horizontal-scrolling. It seems to be quite a common layout for UK based illustrators/graphic designers. Does anyone have any ideas how to achieve this ??
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
https://css-tricks.com/how-to -create-a-horizontally-scrolling-site/
演示...
https:/ /css-tricks.com/examples/HorzScrolling/
相当不错 - 尽管使用锚点和滚动条可能会更直观箭头
https://css-tricks.com/how-to-create-a-horizontally-scrolling-site/
the DEMO...
https://css-tricks.com/examples/HorzScrolling/
Is quite good - although could be more intuitive with anchors & arrows
使用这个主题:
http://thethemefoundry.com/shelf/
否则,您将不得不深入研究 CSS 才能实现这种效果。
Use this theme:
http://thethemefoundry.com/shelf/
Otherwise you'll have to digg into CSS for that effect.
通过CSS(固定,见下文)或JavaScript(动态,例如取决于文章的数量)为您的主体(或例如包装器div)指定显式宽度。然后将你的文章向左浮动,并给它们一个明确的宽度。
Give your body (or for instance a wrapper div) an explicit width, either via CSS (fixed, see below) or JavaScript (dynamic and for instance depending on the number of articles). Then float your articles left and give them an explicit width as well.