摘要:
<div><span>文本内容</span></div> 1.获取设置元素内容 html( ) $("div").html("123"); // 设置div的元素内容 ("div").html( ); // <span>123</span> 2.获取设置元素文本内容 text( ) $("div") 阅读全文
摘要:
<script> $(function(){ // 方式一: $("#allCheck").change(function(){ if($(this).prop("checked")==true){ $(".check").each(function(){ $(this).prop("checked 阅读全文
摘要:
<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 阅读全文