[英]How to display a link which will show pop-up
我有一张桌子,上面有一些文本数据。 列之一应该是可单击的:将显示一个用于编辑此行的弹出窗口。
为用户解释单击此行会导致弹出窗口的最佳方法是什么? 我看到4个变体:
<td><a href="#">Smith</a></td>
<td><span style="cursor:pointer; border-bottom: dotted 1px">Jackson</span></td>
<td><button>Doe</button></td>
<td>Johnson <span style="cursor:pointer" class="glyphicon glyphicon-edit"></span>
该图标最具吸引力,因为其他图标仅表明您将获得更多信息。 清除图标后,用户将进行编辑。
我也会像这样使它产生悬停效果:
$(document).ready(function() {
$('#test2').hover(function(){
$('#test').addClass('glyphicon glyphicon-edit');
},
function(){
$('#test').removeClass('glyphicon glyphicon-edit');
});
});
#test2
是单元格, #test2
#test
是跨度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.