码迷,mamicode.com
首页 >  
搜索关键字:child    ( 3634个结果
css与jquery实现定位
代码: ... ... ... 实现#topAd下的第一个子元素中的.del隐藏1.css实现#topAd .SC:first-child .del{ display:none; }2.juery实现
分类:Web程序   时间:2015-05-07 08:42:00    阅读次数:177
(LeetCode 135) Candy
There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following req...
分类:其他好文   时间:2015-05-06 21:12:47    阅读次数:148
CSS3---nth-of-type(n)选择器
nth-of-type(n)选择器“:nth-of-type(n)”选择器和“:nth-child(n)”选择器非常类似,不同的是它只计算父元素中指定的某种类型的子元素。当某个元素中的子元素不单单是同一种类型的子元素时,使用“:nth-of-type(n)”选择器来定位于父元素中某种类型的子元素是非...
分类:Web程序   时间:2015-05-04 22:04:22    阅读次数:502
CSS3---结构性伪类选择器—last-child
结构性伪类选择器—last-child“:last-child”选择器与“:first-child”选择器作用类似,不同的是“:last-child”选择器选择的是元素的最后一个子元素。例如,需要改变的是列表中的最后一个“li”的背景色,就可以使用这个选择器,ul>li:last-child{bac...
分类:Web程序   时间:2015-05-04 22:02:28    阅读次数:237
CSS3---结构性伪类选择器—nth-child(n)
结构性伪类选择器—nth-child(n)“:nth-child(n)”选择器用来定位某个父元素的一个或多个特定的子元素。其中“n”是其参数,而且可以是整数值(1,2,3,4),也可以是表达式(2n+1、-n+5)和关键词(odd、even),但参数n的起始值始终是1,而不是0。也就是说,参数n的值...
分类:Web程序   时间:2015-05-04 22:01:51    阅读次数:118
CSS3---结构性伪类选择器—nth-last-child(n)
结构性伪类选择器—nth-last-child(n)“:nth-last-child(n)”选择器和前面的“:nth-child(n)”选择器非常的相似,只是这里多了一个“last”,所起的作用和“:nth-child(n)”选择器有所区别,从某父元素的最后一个子元素开始计算,来选择特定的元素。案例...
分类:Web程序   时间:2015-05-04 22:01:00    阅读次数:213
CSS3---first-of-type选择器
first-of-type选择器“:first-of-type”选择器类似于“:first-child”选择器,不同之处就是指定了元素的类型,其主要用来定位一个父元素下的某个类型的第一个子元素。示例演示:通过“:first-of-type”选择器,定位div容器中的第一个p元素(p不一定是容器中的第...
分类:Web程序   时间:2015-05-04 21:48:19    阅读次数:192
php读取xml文件内容,并循环写入mysql数据库
children() as $child){ $i = 0 ; foreach ($child->children() as $kid){ if($i==0){ $name = $kid ; ...
分类:数据库   时间:2015-05-04 11:30:50    阅读次数:152
b树的实现
#include #include #include #include #include #define M 2 using namespace std; struct BTNode{ int keyNum; int key[2*M-1]; //关键字数组 struct BTNode* child[2*M];//孩子结点数组 bool isLeaf; }; void D...
分类:其他好文   时间:2015-05-04 10:12:01    阅读次数:109
b树的c++实现
#include #include #include using namespace std; class BTree{ static const int M = 2; struct BTNode{ int keyNum; int key[2 * M - 1]; //关键字数组 struct BTNode* child[2 * M];//孩子结点数组 bool i...
分类:编程语言   时间:2015-05-04 10:06:49    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!