Is Boostrap compatible with Struts 2?(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 兼容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Boostrap 与 Struts 2 兼容吗?


基础教程推荐
- fetch 是否支持原生多文件上传? 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01