ContentFlow (coverflow) - 如何让它按照我想要的方式工作?
我正在尝试使用这个插件:
http://www.jacksasylum.eu/ContentFlow/
2分:
我想知道如何将其放入我的 div 中并保留在 div 的体积内?现在,我的 div 是 185px,但是当我将 coverflow 放入 div 内部时,它会脱离它并在 div 外部播放。
如果我去掉 div 的高度,它将保留在 div 内,但是...... div 必须保持在 185px 的高度。我在 CoverFlow css 中没有真正看到任何填充或边距元素,所以我不确定应该编辑什么。
我还计划将 coverflow 放入另一个页面上的更小的 div 中,所以我想知道如何缩放它并正确地适应我的设置高度 div 而没有问题。
当我将页面加载到另一个页面中的另一个 div 中时,封面流将不会加载。所以基本上,封面流仅在其自己的页面中加载。我已将 .js 和 css 的链接放入加载 coverflow 页面的主文件中,但它仍然不起作用。
谁能帮我弄清楚这两个要点吗?
Im trying to use this plugin:
http://www.jacksasylum.eu/ContentFlow/
2 points:
I want to know how can I get it into my div and stay inside the volume of the div? As it is right now, my div is 185px, but when I put the coverflow inside of the div, it breaks out of it and plays outside the div.
If I take the height off the div, it will stay inside the div, but... the div MUST remain at height of 185px. I dont really see any padding or margin elements inside the CoverFlow css, so im not sure what im supposed to edit.
I also have plans to put the coverflow into an even smaller div on another page, so I want to know how to scale it and fit into my set-height div properly without problems.
When I load the page into another div thats in another page, the coverflow will not load. So basically, the coverflow only loads in its own page. Ive put the links to the .js and css into the main file that loads the coverflow page, but its still not working.
Can anyone help me figure out these 2 important points?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生的情况是 ContentFlow 完全忽略了容器的高度;它似乎使用某种固定的方面,仅考虑宽度,并据此计算高度。
因此,在您的情况下,考虑到您有固定的高度,最简单的解决方案是减少容器的宽度,从而使 ContentFlow 计算出较小的高度。
What is happening there is that ContentFlow completely ignores the container's height; it seems to be using some kind of fixed aspect, with only width being taken into consideration, and the height being calculated from that.
Therefore, the simplest solution, in your case, given that you have a fixed height, is to reduce the width of the container, therefore making ContentFlow calculate an smaller height.