我正在使用 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模板网!
JavaScript innerHTML 不适用于 IE?JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不适用于 IE?)
document.write() 覆盖文档?document.write() overwriting the document?(document.write() 覆盖文档?)
AngularJS 错误:跨源请求仅支持协议方案:http、datAngularJS Error: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https(AngularJS 错误:跨源请求仅支持
IE10 和 Image/Canvas 的跨域资源共享 (CORS) 问题IE10 and Cross-origin resource sharing (CORS) issues with Image / Canvas(IE10 和 Image/Canvas 的跨域资源共享 (CORS) 问题)
从本地文件夹导入 type=module 的脚本会导致 CORS 问Importing script with type=module from local folder causes a CORS issue(从本地文件夹导入 type=module 的脚本会导致 CORS 问题)
img 标签的 HTML 跨域属性HTML crossorigin attribute for img tag(img 标签的 HTML 跨域属性)