私はAngularJSを使用して、HTMLで次のテーブルを持っている:「によって報告された」列「観察」、「確認者」、および「日付」でcssを使用してHTMLテーブルの単語の各インスタンスの色を変更するにはどうすればよいですか?
<table id="searchTable">
<thead>
<tr>
<th>Index</th>
<th>Observation</th>
<th>Reported By</th>
<th>Verified By</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="observation in observations| filter:searchText">
<th> {{$index + 1}} </th>
<th>{{observation.clinicalType}}</th>
<th>{{observation.reportedBy}}</th>
<th>{{observation.verifiedBy}}</th>
<th>{{observation.reportedDate}}</th>
</tr>
</tbody>
</table>
、文字列を持つことが可能である「NULL "私はCSSの中で素早く簡単な方法で、 "NULL"の各インスタンスを赤色で四つの列のすべてに塗りつぶすのかどうか疑問に思っていましたか?私はかなりの間そこにこだわってきました。
jQueryやJSの方が良いと思います。 – patwoj98
すみません、皆、私はついに解決策を見つけました: http://stackoverflow.com/questions/18745001/how-will-i-change-the-color-of-a-font-based-on-a-value-using -angularjs-directive – Johnathan