最佳答案
您希望按钮位于第 5 个 td 中吗?如果是,则删除此内容
#table button{
position: absolute;
top: 0px;
right: 5px;
height: 10px;
width: 1.5em
}
或者,如果您希望按钮位于此处(表格外),请将 #table button
替换为以下样式
#table button{
position: absolute;
top: 0px;
right: 5px;
}
还要添加这个
#table button:active{
position: absolute;
top: 0px;
right: 5px;
top: 1px;
box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
background-image: none
}
Note: You are using
position: absolute;
, be sure you've wrapped it inside a position: relative; container
关于CSS按钮:active not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13795954/