nth-child does not work in Safari
问题 I'm trying following CSS, it works in Firefox and Chrome but does not work in the Safari (5.1). I have checked Safari supports nth-child. What I'm doing wrong? CSS: option:nth-child(2){ display: none; } HTML: <select> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select> Demo: http://jsfiddle.net/Kv9tj/ 回答1: You can always use: nth-of-type(2) . Browser support for :nth-of-type is fairly decent... Firefox 3.5+, Opera 9.5+, Chrome 2+, Safari 3