.txtguanggao a:nth-child(1) { background-color: #ff6b90; } .txtguanggao a:nth-child(2) { background-color: #ff6b90; } .txtguanggao a:nth-child(3) { background-color: #ff6b90; } .txtguanggao a:nth-child(4) { background-color: #ff6b90; } .txtguanggao a:nth-child(5) { background-color: #ff6b90; } .txtguanggao a:nth-child(6) { background-color: #ff6b90; } .txtguanggao a:nth-child(7) { background-color: #ff6b90; } .txtguanggao a:nth-child(8) { background-color: #ff6b90; } .txtguanggao a:nth-child(9) { background-color: #ff6b90; } .txtguanggao a:nth-child(10) { background-color: #ff6b90; } .txtguanggao a:nth-child(11) { background-color: #ff6b90; } .txtguanggao a:nth-child(12) { background-color: #ff6b90; } .txtguanggao a:nth-child(13) { background-color: #ff6b90; } .txtguanggao a:nth-child(14) { background-color: #ff6b90; } .txtguanggao a:nth-child(15) { background-color: #ff6b90; } .txtguanggao a:nth $(".copy_btn").each(function(){ var text1 = $(this).attr("data-text"); var clipboard = new Clipboard(this, { text: function() { return text1; } }); clipboard.on('success', function(e) { alert("地址复制成功"); }); }); $(".copy_text").each(function(){ var text2 = $(this).text(); var clipboard = new Clipboard(this, { text: function() { return text2; } }); clipboard.on('success', function(e) { alert("地址复制成功"); }); }); $(".copy_checked").each(function(){ var checked_url=[]; $(this).parent().parent().find("li").find(".copy_text").each(function(){ checked_url.push($(this).text()); }); var clipboard = new Clipboard(this, { text: function() { return checked_url.join('\n'); } }); clipboard.on('success', function(e) { alert("地址复制成功"); }); });