本文介紹了Boostrap 與 Struts 2 兼容嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我正在使用 Bootstrap 進行 UI 開發.當我在其中為 textfield
使用 Struts 2 標記時,完整的頁面對齊被破壞了.當我用普通標簽替換 s:
(Struts 2 標簽) 標簽時,它工作正常.
I am using Bootstrap for my UI development. When I use Struts 2 tags for textfield
in it, the complete page alignment is destroyed. When I replace the s:
(Struts 2 tags) tags with normal tags, it is working fine.
我需要添加任何額外的罐子嗎?
Do I need to include any extra jar?
推薦答案
Struts 2 在渲染 JSP 頁面的輸出時使用主題.您可以在 Struts 2 Themes 中閱讀有關主題的更多信息.要更改默認主題,請將其放入 struts.xml
Struts 2 uses themes while rendering output of the JSP page. You can read more about themes in Struts 2 Themes. To change a default theme put this in the struts.xml
<constant name="struts.ui.theme" value="simple"/>
這篇關于Boostrap 與 Struts 2 兼容嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!