gpt4 book ai didi

html - Bootstrap cssStyle 标签忽略了 Spring MVC 3.2.8

转载 作者:行者123 更新时间:2023-11-28 05:09:16 26 4
gpt4 key购买 nike

我的 JSP 中有这个输入文本,使用的是 Bootstrap 类

<input type="text" name="device" class="form-control" id="device" placeholder="IOS/Android" onblur="if(this.value=='')this.value='IOS/Android'" onfocus="if(this.value=='IOS/Android') this.value='';" onkeypress="" />

但是使用 spring 标签,样式完全被忽略了!

<form:input path="device" placeholder="IOS/Android" cssStyle="form-control" onblur="if(this.value=='')this.value='IOS/Android'" onfocus="if(this.value=='IOS/Android') this.value='';" onkeypress=""  />

最佳答案

我认为您需要使用 cssClass 而不是 cssStyle

关于html - Bootstrap cssStyle 标签忽略了 Spring MVC 3.2.8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39661796/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com