我使用的是ContentFlow(http://www.jacksasylum.eu/ContentFlow/index.php),我想避免圖像重疊,在左右兩側增加20px。 你能告訴我如何實現它嗎? 非常感謝! Corrado。ContentFlow:避免圖像重疊
7
A
回答
5
所以,你要做的:
- 安裝默認插件
- 轉到
ContentFlowAddOn_DEFAULT.js
和搜索此:
alcCoordinates: function (item) { var rP = item.relativePosition; //var rPN = item.relativePositionNormed; var vI = this.conf.visibleItems; var f = 1 - 1/Math.exp(Math.abs(rP)*0.75); var x = item.side * vI/(vI+1)* f; var y = 1; return {x: x, y: y}; },
您在0.75
數量在年底特別感興趣的var f
。
- 更改它
1.75
和更高取決於您的偏好設置。
相關問題
- 1. 避免boxlayout重疊
- 2. 如何避免重疊(重疊)標籤?
- 3. 避免圖像在手機上堆疊
- 4. Android:避免重疊動態視圖
- 5. 如何避免與text_layer重疊繪圖?
- 6. Matplotlib底圖:避免文本重疊
- 7. 避免d3.js圈重疊
- 8. 避免2個textview重疊
- 9. 如何避免css重疊?
- 10. 如何避免重疊?
- 11. Matlab:如何避免橢圓在圖像中重疊?
- 12. 如何避免頁腳在div上方重疊圖像
- 13. 如何調整圖像周圍的文字以避免重疊
- 14. mithril避免重新加載圖像
- 15. 避免圖像的雙重優化
- 16. 避免在ggplot中重疊線條
- 17. 如何避免按鈕重疊?
- 18. addView到RelativeLayout時如何避免重疊?
- 19. 如何避免在ggplot2 boxplot中重疊?
- 20. href和tr點擊避免重疊
- 21. 如何避免FAB與BottomNavigationView重疊?
- 22. 抖動點時避免重疊
- 23. 避免QVBoxLayout中的Widgets重疊
- 24. 如何避免標記重疊
- 25. 避免重疊的div水平
- 26. GLSL - 如何避免多邊形重疊?
- 27. 避免系列點在dxChart中重疊
- 28. 如何避免重疊元素
- 29. Cytoscape:避免重疊分組節點
- 30. 比較重疊的日期 - 不避免
您是否設法找到了解決方案?我也是這個問題的緩衝! Petros – Cacofonix 2011-08-11 14:07:52