<table border-bottom = 2>
<th, td >
{
padding: 15px;
text-align: left;
}
<tr:hover {background-color:#f5f5f5;}></tr>
</table>
Run Code Online (Sandbox Code Playgroud)
以上述方式编写会引发错误。Angular 的语法是什么?
请展示一个将th,td类型的属性与ngClass/ngStyle或其他任何适用的组合的示例。