{"action":"opened","issue":{"url":"https://api.github.com/repos/Waynepeng/Learn_JQuery/issues/51","repository_url":"https://api.github.com/repos/Waynepeng/Learn_JQuery","labels_url":"https://api.github.com/repos/Waynepeng/Learn_JQuery/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/Waynepeng/Learn_JQuery/issues/51/comments","events_url":"https://api.github.com/repos/Waynepeng/Learn_JQuery/issues/51/events","html_url":"https://github.com/Waynepeng/Learn_JQuery/issues/51","id":151847743,"number":51,"title":"JQueryparent_ul","user":{"login":"Waynepeng","id":5806426,"avatar_url":"https://avatars.githubusercontent.com/u/5806426?v=3","gravatar_id":"","url":"https://api.github.com/users/Waynepeng","html_url":"https://github.com/Waynepeng","followers_url":"https://api.github.com/users/Waynepeng/followers","following_url":"https://api.github.com/users/Waynepeng/following{/other_user}","gists_url":"https://api.github.com/users/Waynepeng/gists{/gist_id}","starred_url":"https://api.github.com/users/Waynepeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Waynepeng/subscriptions","organizations_url":"https://api.github.com/users/Waynepeng/orgs","repos_url":"https://api.github.com/users/Waynepeng/repos","events_url":"https://api.github.com/users/Waynepeng/events{/privacy}","received_events_url":"https://api.github.com/users/Waynepeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T11:42:49Z","updated_at":"2016-04-29T11:42:49Z","closed_at":null,"body":"<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<style>\r\n.ancestors *\r\n{\r\ndisplay:block;\r\nborder: 2px solid lightgrey;\r\ncolor:lightgrey;\r\npadding:5px;\r\nmargin:15px;\r\n}\r\n</style>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">\r\n<script src=\"http://www.w3school.com.cn/jquery/jquery-1.11.1.min.js\"></script>\r\n<script>\r\n$(document).ready(function() {\r\n\t\t$(\"span\").parents(\"ul\").css({\"color\":\"red\",\"border\":\"2px solid red\"})\r\n});\r\n</script>\r\n</head>\r\n<body>\r\n<div class=\"ancestors\">\r\n\t<div style=\"width:500px;\">div (曾祖父)\r\n\t\t<ul>ul (祖父)\r\n\t\t\t<li>li (直接父)\r\n\t\t\t\t<span>span</span>\r\n\t\t\t</li>\r\n\t\t</ul>\r\n\t</div>\r\n</div>\r\n</body>\r\n</html>"}}