1
A
回答
2
如果你想只改變滾動面板的滾動條的方向,你可以添加以下的CSS規則到面板
direction: rtl;
我厭倦了這一點,它的工作原理。看看這個代碼。
ScrollPanel scrollPanel = new ScrollPanel(new Label("I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?I am just wondering... How to set vertical scroll bar from right to left side for ScrollPanel in pure GWT? Or maybe there is some alt walk-around?"));
scrollPanel.setSize("100px", "100px");
scrollPanel.setTitle("mypanel");
scrollPanel.addStyleName("dit");
RootPanel.get().add(scrollPanel);
和CSS類是像
.dit {
direction: rtl;
text-align: left !important; /*Only if you want to set text alignment to left.*/
}
(僅測試鉻)
相關問題
- 1. Swing JScrollPane - 如何將垂直滾動條設置到左側?
- 2. ListView - 左側的垂直滾動條
- 3. 如何將UIScrollview的垂直滾動條更改爲左側網站?
- 4. C#/ winforms面板左側有垂直滾動條?
- 5. 在左側有垂直滾動條的文本框
- 6. DIV垂直滾動條左邊
- 7. 垂直滾動條到表
- 8. 如何在VB.NET中設置垂直滾動條的位置?
- 9. 將垂直滾動條添加到checkedlistbox
- 10. 將垂直滾動條添加到cakephp3
- 11. 垂直滾動條
- 12. 垂直滾動條
- 13. 是否可以停止垂直滾動條將DataGrid列/標題推向左側?
- 14. Android:在gridview中將滾動條的左側設置爲空格
- 15. 反應原生滑動垂直滾動瀏覽到左側和右側
- 16. 在TextView上設置滾動條以進行垂直滾動
- 17. 如何在jdialog中設置垂直滾動條?
- 18. 如何在win中設置垂直滾動條
- 19. 如何設置垂直滾動條總是在底部?
- 20. 如何設置垂直滾動條的相對佈局
- 21. 如何獲得GWT CellTable的垂直滾動條
- 22. 垂直設置jQuery UI滑動條滾動條?
- 23. JScrollPane左側滾動條
- 24. 左側滾動條在CSS
- 25. 垂直滾動條的setValue總是將它設置爲90
- 26. 如何將垂直位置放置在垂直CSS菜單的左側或右側?
- 27. 垂直滾動條動畫
- 28. 如何找到垂直滾動條的結束位置?
- 29. 垂直滾動條位置絕對
- 30. 將表格部分垂直移動到表格的左側
我試圖設置這個CSS樣式setStyleName( 「UI-右滾動」);但它使ScrollPanel小部件的文本正確對齊,但不能替代垂直滾動條本身:( – user592704
)這是非常有趣的想法,我嘗試了方向:rtl,它真的將垂直滾動條替換爲左側,但是所有ScrollPanel內容文本都變得反映出來瞭如在鏡子中:S但我只是想將垂直滾動條從其默認的右側位置替換爲左側滾動條但不反映其所有內容:(我如何修復全部內容反射效果?是否有方法替換垂直滾動條而不是反映它的所有內容? – user592704
你必須深入挖掘CSS,並且應該爲CSS的每一個元素都應用一個seperete CSS,沒有任何絕對的方法可以做到這一點。祝你好運:-)嘗試設置滾動面板的內容方向:ltr!important;可以幫助你 –