`
luccs624061082
  • 浏览: 82464 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

jsp页面美化总结记录

阅读更多
问题1 :火狐,ie流浪器兼容问题
描述:在一个table中 数据显示,火狐下显示正常,但是在ie中标题确与数据不对称。
样式中也写明了 text-align:left,但是在ie中不起作用,最后在<th>中追加样式
text-align:left 这样就解决了头标题与数据的对称问题

具体jsp代码:
<table style="width: 100%;">
<thead
style="border-bottom: 1px solid; font-weight: bold; text-align: left;">
<tr>
<th>
日期
</th>
<th>
空腹血糖
</th>
<th>
血糖变化值
</th>
<th>
状态
</th>
<th>
来源
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
</tbody>
</table>

这里需要在<th>中追加样式 style="text-align:left"

问题2:时间控件的显示
描述:时间控件 WdatePicker.js在ie下显示正常 但是在火狐下不能显示 之后可以显示了确显示乱码
在ie下显示正常 但是在火狐下显示不了,并且只能在body中写js代码 拿到head中 就不能显示了 需要刷新一次 才可以显示,最后发现是此版本不是最新的,换成最新的额就OK了。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics