请问,是否可以添加一个边界到表格的tr悬停与JQuery?使用JQuery在表格的tr上添加边框?
我的意思是,
$("#table tr").hover(function()
{
$(this).css("border","1px solid #6da8dc");
$("#doc_options").show();
},function()
{
$(this).css("border","none");
$("#doc_options").hide();
});
而且如果这个工程,我如何创建一个每个TR设置1px的无形的界限,这样,当我将鼠标悬停时,TR不跳,因为1px的边框有刚被添加。
'#table tr {border:1px solid transparent; } #table tr:hover {border:1px solid#6da8dc; ''? – Quentin 2011-02-28 14:47:02
css可以像大卫一样做这个... – 2011-02-28 14:50:40
请注意,当涉及到IE时,你会遇到tr边界问题。不是任何人都应该关心。 – Bergius 2011-02-28 15:04:37