在线教程

  • css pseudo classes

    ... 这个伪类是 :first-child 和 :last-child的通用版本,用来选择第n个子元素。 比如,如果你想选择第2个子元素,你可以使用 :nth-child(2): li:nth-child(2){ background: violet;} One Two Three Four 奇数和偶数(odd 和 even) 除了使用直接的数字外,:nth-child 还支持以奇偶数的方式来通配选择子元素,这对于设置一些动态表格样式有帮助。 ...

  • css grid layout placement

    ... grid-row: 2; /* 放到第二行。 */ grid-column: 3; /* 放到第三列。 */ /* 等同于规则 grid-area: 2 / 3; */ } 缺省情况下,网格项的跨度为1。我们可以显式指定跨度: .three { grid-row: 2 / span 5; /* 从第二行开始,向下横跨5行(在第7行结束)。 */ } .four { grid-row: span 5 / 7; /* 在第7行结束,向上倒着横跨5行(以第2行 ...

  • js syntax basics

    ... 而JS是弱类型语言(weakly typed language)。这意味着你可以随意更改变量的类型,下面的语句在强类型语言中是非法的,但在JS中可以工作: var age = "thirty three"; age = 33; 字符串(Strings) 字符串由0或更多字符组成。字符包括字母、数字、标点符号以及空格。字符串必须包含在引号中。你可以使用单引号 ...

  • svg reference

    ... and any children are inherited. Recursive"   <polygon> Defines a graphic that contains at least three sides points="the points of the polygon. The total number of points must be even". Required ...

推广服务(新)
最新文章