摘要: <div><span>文本内容</span></div> 1.获取设置元素内容 html( ) $("div").html("123"); // 设置div的元素内容 ("div").html( ); // <span>123</span> 2.获取设置元素文本内容 text( ) $("div") 阅读全文
posted @ 2019-08-11 22:08 晴天宝宝i 阅读(118) 评论(0) 推荐(0) 编辑
摘要: <script> $(function(){ // 方式一: $("#allCheck").change(function(){ if($(this).prop("checked")==true){ $(".check").each(function(){ $(this).prop("checked 阅读全文
posted @ 2019-08-11 21:15 晴天宝宝i 阅读(139) 评论(0) 推荐(0) 编辑
摘要: <style> body{margin: 0;padding: 0;background: #000;} a{display: inline-block;} img{height:150px;width: 150px;} ul{width: 480px;} ul li{list-style: non 阅读全文
posted @ 2019-08-11 15:51 晴天宝宝i 阅读(182) 评论(0) 推荐(0) 编辑