用Jquery:$(function(){$("div>a").attr("target","_blank");});或者直接写JS,长了点就不给你直接写了,告诉你思想先查找页面上的div然后从div中查找a,再设置a的target