0
A
回答
0
如果這應該像一個常規下拉菜單,只有菜單項不在線上,那麼是的,這是可能的。你可以使用正常的菜單,並使用jQuery來移動位置或填充。
0
這將是一個解決方案:
$('ul.menu li').each(function() {
var marginLeft = 0; // start margin left position in pixels
var stapLeft = 50; // pixels
// looping through every li item underneave a ul in the list
$(this).find('ul li').each(function() {
// set the margin for the element
$(this).css(marginLeft, marginLeft);
// set for the next item the margin
marginLeft += stapLeft;
});
});
但有defently一個更好的方式來做到這一點:)它只是把你指向的方向
相關問題
- 1. 菜單項略微傾斜?
- 2. 用CSS傾斜的列
- 3. 傾斜對角線的CSS
- 4. 發現傾斜分佈的概率
- 5. 與iPad傾斜
- 6. 添加更傾斜的斜體文本
- 7. 帶CSS的傾斜圖像框
- 8. css:稍微傾斜的邊框半徑
- 9. CSS響應傾斜的邊緣
- 10. 如何使css中的右側傾斜?
- 11. OpenCV - 調整傾斜角度的照片(傾斜)
- 12. SoapUI +傾斜集成
- 13. PictureBox傾斜圖像
- 14. Raking UnknownAttributeError當傾斜
- 15. iPhone傾斜方向
- 16. 通過html css和javascript傾斜設計?
- 17. 點上傾斜的橢圓
- 18. Html傾斜的圖像?
- 19. 垂直傾斜的DropDownList值
- 20. 傾斜效果的HubTile
- 21. ASP.NET - 傾斜的GetType()母版
- 22. Python的傾斜基因組
- 23. Android中傾斜的EditText?
- 24. 傾斜圖像的一側
- 25. 下拉菜單中帶有漸變的CSS斜角菜單
- 26. 半透明傾斜背景
- 27. 視差分度傾斜
- 28. IFRAME表 - 傾斜疊加
- 29. 僅傾斜背景圖像
- 30. 傾斜時動畫開始