jqGrid-列的HeaderText不能正确显示 [英] jqGrid - HeaderText of columns are not displayed properly

查看:81
本文介绍了jqGrid-列的HeaderText不能正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个固定宽度为445px的jqGrid.在所有版本的IE(v6,v7,v8和v9)中,HeaderText不能正确显示.在其他浏览器中,它运行良好. 对此问题有解决方案吗?

I have a jqGrid with fixed width of 445px. In all Version of IE (v6,v7,v8 and v9), HeaderText is not displayed properly. In other browsers it is working well. Any solution for this issue?

推荐答案

我建议您验证HTML文件是否以<!DOCTYPE html ...开头:( <!DOCTYPE html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">取决于所使用的HTML或XHTML方言).另外,我建议您验证IE的配置是否已激活兼容模式.如果使用兼容模式,则可以通过添加

I recommend you to verify that the HTML file starts with <!DOCTYPE html ...: (<!DOCTYPE html> or <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> depend on the HTML or XHTML dialect which you use). Additionally I recommend you to verify whether the configuration of IE has activate the compatibility mode. If the compatibility mode are used the problem can be solved by including

<meta http-equiv="X-UA-Compatible" content="IE=edge" >

HTML页面<head>开头的

.我在所有生产性页面中都包含了上面的行.

at the beginning of the <head> of the HTML page. I include the above line in all productive pages.

这篇关于jqGrid-列的HeaderText不能正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆