如何在表内应用css for anchor标签

mil*_*ano 1 html css css3

我正在尝试将css应用于表格内的锚标记.但我无法看到任何变化.这该怎么做?

码:

<!DOCTYPE html>
<html>
<head>
<style>
table.tab>td>a
{
background-color:yellow;
}
</style>
</head>

<body>
<table class="tab">
<tr><td><a href="#">google.com</a></td></tr>
</tr></table>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

Abd*_*lik 5

table.tab td a{
background-color:yellow;}
Run Code Online (Sandbox Code Playgroud)