1 两个input按钮,底部不对齐
第二个input 加入了图片,结果比第一个input高
解决:在两个input标签的css style中加入,vertical-align:middle;属性的配置
借鉴博客http://www.cnblogs.com/jingwhale/p/4753686.html
2 velocity乱码
在web.xml文件中已经配置了encoding编码为utf-8
velocity配置文件properties中也配置了input output的编码为utf-8
解决:
1 工程统一改为utf-8 无效
2 在dispatcher-servlet.xml文件中,VelocityViewResolver标签,增加属性
<property name="contentType"><value>text/html;charset=UTF-8</value></property>
借鉴博客http://www.cnblogs.com/netcorner/p/4310353.html

本文介绍了解决两个Input按钮底部不对齐的问题,通过调整CSS样式中的vertical-align属性实现对齐。此外,还解决了Velocity模板引擎在配置了UTF-8编码后仍出现乱码的情况,通过在dispatcher-servlet.xml文件中设置VelocityViewResolver的contentType属性来解决。
1084

被折叠的 条评论
为什么被折叠?



