<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <script src="jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> // 入口函数 $(document).ready(function() { var jqOpenLight = $("#openLight"); var jqCloseLight = $("#closeLight"); var jqBody = $("body"); $(jqOpenLight).click(function() { jqBody[0].style.backgroundColor = "white"; }) $(jqCloseLight).click(function() { jqBody.get(0).style.backgroundColor = "black"; }) }); </script> <style type="text/css"> div { background-color: red; height: 300px; margin: 50px; } </style> </head> <body> <input type="button" name="" id="openLight" value="开灯" /> <input type="button" name="" id="closeLight" value="关灯" /> <div id=""> </div> </body></html>
原文转载:http://www.shaoqun.com/a/481358.html
拍怕:https://www.ikjzd.com/w/2205
败欧洲:https://www.ikjzd.com/w/1555
旺店通:https://www.ikjzd.com/w/2390
<!DOCTYPEhtml><html><head><metacharset="utf-8"/><metaname="viewport"content="width=device-width,initial-scale=1"><title></title>
trax:https://www.ikjzd.com/w/1489
eori:https://www.ikjzd.com/w/499
乌兰布统大草原 独具欧陆风情的湖泊:http://tour.shaoqun.com/a/60580.html
中国公民旅游关注度报告2011年第一季发布 :http://tour.shaoqun.com/a/52902.html
在香港旺角或者铜锣湾这几个地方方便购物,有好的酒店推荐?:http://tour.shaoqun.com/a/64224.html
没有评论:
发表评论