<!DOCTYPE html> <html> <head> <style> /* How to select a range of children * (Here, 3rd-7th children, inclusive): */ ul li:nth-child(n+3):nth-child(-n+7) { outline: 1px solid #0f0; } </style> </head> <body> <ul> <li>Child 1</li> <li>Child 2</li> <li>Child 3</li> <li>Child 4</li> <li>Child 5</li> <li>Child 6</li> <li>Child 7</li> <li>Child 8</li> <li>Child 9</li> <li>Child 10</li> </ul> </body> </html>
XHTMT|
HTML5|
CSS|
HTML DOM|
jQuery|
JSON|
AJAX|
LESS|
HTML|
Bootstrap|
Foundation|
AngularJS|
Ember.js|
TypeScript|
AngularJS2|
React|
jQuery UI|
jQuery EasyUI|
Node.js|
Highcharts|
Echarts|
Vue.js|
CoffeeScript|
Ext.js|
Meteor|
SASS|
Omi|
Markdown|
前端开发规范|
浏览器|
webpack|
JavaScript|
CSS3|
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....