- 博客(5)
- 收藏
- 关注
原创 jquery javascript 展开收起
JavaScript: 一: function showContent() { var main = document.getElementById("main"); var content = main.innerHTML; var newContent = document.createElement("div");
2016-12-21 17:21:04 304
原创 第四章 jQuery 样式与动画
通过jQuery可以轻松地为页面操作添加简单的视觉效果,甚至能创建更精致的动画 // 取得单个属性的值 .css('property') //返回 "value" //取得多个属性的值 .css ( [ ' property1 ' , ' property-2 ' ] ) // 返回 { " property1 " : " value1 " , " property-2" : " v
2016-12-20 17:09:56 332
原创 否定伪类(:not) :empty选择器
x:not(selector) 筛选不含有selector的x 1、选择所有不含有有 class1 的元素 :not(:class1) $(document).ready(function () { $('p:not(.p1)').addClass('p6'); }) :empty 选择器 选择每个空元
2016-12-17 14:43:26 2507
原创 .index() :gt()Selector :lt()Selector
Search for given element from among the matched elements. *This signature does not accept any arguments. --- .index() *A selector representing a jQuery collection in which to look for an element. -
2016-12-12 22:16:07 250
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人