【问题标题】:html table fields are not recognized in asp.net IDE在 asp.net IDE 中无法识别 html 表字段
【发布时间】:2015-05-27 17:08:02
【问题描述】:

jsFiddle

我正在尝试将此 html 代码复制到 asp.net aspx 页面源中。 这样做时,VS IDE 无法识别以下表格元素,如 fieldfitColumns,尽管为 jeasyui.js 提供了链接。

<table class="cartcontent" fitColumns="true" style="width:300px;height:auto;">
 <thead>
   <tr>
    <th field="name" width=140>Name</th>
    <th field="quantity" width=60 align="right">Quantity</th>
    <th field="price" width=60 align="right">Price</th>
    <th field="remove" width=60 align="right">Remove</th>
  </tr>
 </thead>
</table>

【问题讨论】:

  • 你试过使用&lt;asp:Table&gt; &lt;asp:TableRow&gt;&lt;asp:TableCell&gt;元素吗?
  • 它在 VS 2013 中工作
  • @TonyHinkle 当上述元素来自jeasyui jquery 插件时,使用asp table 控件而不是html 有什么区别?
  • 我不知道——这只是一个尝试的建议......
  • 不要把反对票看成个人——这只是为了让您知道需要更多信息才能让读者提供帮助,或者有人可能认为它“离题”。然而,就像街上的人一样,这里有些人过于挑剔、不尊重和刻薄。继续插电——很高兴你弄明白了这个。

标签: javascript jquery asp.net visual-studio-2013 jquery-easyui


【解决方案1】:

我设法按照jeasyui documentation 做到了这一点。

<table class="cartcontent" 
             data-options="fitColumns:true, singleSelect: true">                                
  <thead>
       <tr>
           <th data-options="field:'name',width:100">Name</th>
           <th data-options="field:'quantity',width:100">Quantity</th>
           <th data-options="field:'balance',width:100,align:'right'">Balance</th>
           <th data-options="field:'remove',width:100,align:'right'">Remove</th>
       </tr>
    </thead>
</table>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-02
    • 1970-01-01
    • 2020-04-05
    • 2017-12-26
    • 1970-01-01
    • 2014-06-21
    • 1970-01-01
    • 2016-09-02
    相关资源
    最近更新 更多