【问题标题】:NetBeans jqGrid CSS issueNetBeans jqGrid CSS 问题
【发布时间】:2015-01-26 13:25:47
【问题描述】:

我正在使用 netbeans ide 进行编程,最近我正在添加 jqgrid 应用程序,我正在 html 的头部添加以下链接和脚本

<link rel="stylesheet" type="text/css"  href="design/jquery-ui-1.9.2.custom.css"/>
<link rel="stylesheet" type="text/css" href="design/ui.jqgrid.css" />
<script type="text/javascript" src="design/jquery-1.8.3.js"></script> 
<script type="text/javascript" src="design/jquery-ui-1.9.2.custom.js"></script>
<script type="text/javascript" src="design/grid.locale-en.js" ></script>
<script type="text/javascript" src="design/jquery.jqGrid.min.js" ></script>

以上链接 ui.jqgrid.css 在 netbeans 中显示错误,错误是意外的标记点,发现行如下

* html .jqgrid-overlay {width: expression(this.parentNode.offsetWidth+'px');height: expression(this.parentNode.offsetHeight+'px');}
* .jqgrid-overlay iframe {position:absolute;top:0;left:0;z-index:-1;width: expression(this.parentNode.offsetWidth+'px');height: expression(this.parentNode.offsetHeight+'px');}
* iframe.jqm {position:absolute;top:0;left:0;z-index:-1;width: expression(this.parentNode.offsetWidth+'px');height: expression(this.parentNode.offsetHeight+'px');}

请指导我解决此问题

【问题讨论】:

  • 会不会是像here这样更脏的问题?
  • 不,这不是文件夹问题,它仅在 css 文件中显示错误

标签: css netbeans jqgrid


【解决方案1】:

您可能使用了一些旧版本的 jqGrid?查看 jqGrid 4.7.0 的 the ui.jqgrid.css file 或 jqGrid 4.6.0 的 ui.jqgrid.css 并搜索 expression。您将在仅在 cmets 中找到文本。如果您使用一些旧版本的 jqGrid(如 4.5.4 或更早版本),您应该将其更新到 4.6.0/4.7.0。

【讨论】:

    【解决方案2】:

    根据 NetBeans 的版本,您可以通过过滤掉此类解析错误轻松解决此问题。

    为此,您可以单击红色指示器并选择其中一个选项,这样可以忽略此类错误或当前文件!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-23
      • 1970-01-01
      • 2011-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-16
      相关资源
      最近更新 更多