我正在尝试在新标签中打开链接。
<a href="http://www.google.com" target="_blank">Visit Here</a>
这是我可以在新标签页中更改标签的方式。但我想通过更改css在新标签页中打开。我尝试使用
target-name:new;
target-new:tab;
但这不起作用。可以告诉我如何通过更改css在新标签中打开href。
答案 0 :(得分:1)
试试这个jquery ..
<script type="text/javascript">
$(document).ready(function(){
$("a").each(function()
{
$(this).attr("target","_blank");
});
});
</script>