我有一个基于jquery、angularjs数据表的表。当没有匹配的筛选器时,它只显示具有表标题的空行。我必须在表格标题下方显示p标签内容。这个表在wordpress中,所以css可能没有正常工作。
<table>
<tr>
<th>Program Name</th>
</tr>
<tr>
<td>Some program Name</td>
</tr>
</table>
<p>No filters found</p>
<!-- This content should be shown below table header-->
我怎样才能做到这一点?
我得到了自己答案的解决方案我更改了ng重复
<tr ng-repeat="user in filtered= (products | inArray:selectedCountries:'Institute' | filter : searchtxt1 | filter : searchtxt2 | filter : searchtxt3 | filter : searchtxt4 | rangeFilter:'Fees':ui.min:ui.max) | limitTo: 5">
还添加了带ng显示的tbody
<tbody><tr><td style="text-align:center;" colspan="21" ng-show="filtered.length === 0" class="agamotto">Filters didn't matched ! Please try Other Filters</td></tbody>
解决了!