2014-10-11 34 views
0

我正在嘗試製作響應式屏幕。我已經用這種方式使用引導類:在容器標籤中使用引導類

<container style="row"> 
    <container style="col-md-4"> 
    <label text="Demo text one"/> 
    </container> 
    <container style="col-md-4"> 
    <label text="Demo text two"/> 
    </container> 
    <container style="col-md-4"> 
    <label text="Demo text three"/> 
    </container> 
</container> 

我從Hivemind組件的dashboard.xml中獲得了這個參考。

這是使用引導類來實現Moqui響應的正確方法嗎?因爲,我記得一個類似的問題,我們已經討論過它不是一種適當的編碼方式。這裏是URL或那個問題:

https://stackoverflow.com/questions/25502820/what-are-the-possible-ways-to-make-an-ui-interface-using-moqui-framework

回答

0

這是多套樣式是有用的,從引導的用戶界面,響應於屏幕尺寸之一。這與其說是一個Moqui問題作爲引導一個了,好在他們有很大的文檔(見組件,JavaScript和其他網頁存在):

http://getbootstrap.com/css/

注意Moqui目前使用相當幾乎沒有Bootstrap樣式,並且正在逐漸更改爲隨時間推移使用更多,包括仍未在當前GitHub存儲庫(針對版本1.5.0)中發佈的一些更改。