请参考我相关的但不同的问题:如何为表格行添加CSS阴影?
Here is my HTML code:
<style>
.yellow{
background-color: yellow;
}
td{
width:40px;
}
tr:first-child {
box-shadow: inset 1px 1px 5px 5px #d99292;
}
</style>
<table>
<tr>
<td class=yellow>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td class=yellow>4</td>
</tr>
</table>
The goal is to have a inset drop shadow in the first row. The problem is that the background color of cell 1 is obscuring it. 我的问题是:如何使内嵌下拉框显示在单元格1的背景上方?