03 2016 档案

jquery remove() empty()
摘要:<div class="div1"> 你好 <div class="div11">mes</div></div>//*********************************** // $(".div1").empty();//移除里面的所有内容和 $(".div1").html("");的 阅读全文

posted @ 2016-03-25 20:52 亨通K 阅读(122) 评论(0) 推荐(0)

jquery之attr()和removeAttr() prop的使用场所
摘要:attr方法可以查看属性的对应的值,也可以设置属性的值,可以设置多个属性的值,也可以把函数的返回值作为设置属性的值,但是在 removeAttr()只能移除单个属性的值,里面并不能加上多个参数会默认一处第一个参数,加json数据是不能被识别的。 prop()方法的使用所能获取的属性值很少,async 阅读全文

posted @ 2016-03-25 19:20 亨通K 阅读(170) 评论(0) 推荐(0)

jquery 获取对象的八种总结
摘要:一:基本选择器获取 $("标签名") 选取所以标签名的节点 $("#id名") 选取id值的标签节点 $(".class名") 选取所有class名的标签节点 二:组选择器 $("mix,mix,mix,..."), 如:$("div,#test1,p,.test2,#test3") 一种混合应用, 阅读全文

posted @ 2016-03-24 22:20 亨通K 阅读(434) 评论(0) 推荐(0)

html子标签浮动父标签无法扩充
摘要:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <style> .con{ width: 100%; border: solid 1px #ff0000; } .v1{ width: 20%; 阅读全文

posted @ 2016-03-18 15:03 亨通K 阅读(338) 评论(0) 推荐(0)