如何訪問myabilities中的第一個元素,代碼如下?如何訪問myabilities類的第一個元素?
<div class="span6">
<h3 class="srvc-title">Responsive Design</h3>
<p class="srvc-detail">Crafting great experiences to suit the capabilities of every browser.</p>
<p class="myabilities">The number of web-accessible devices is truly a wonder of our information age. It’s also a daunting canvas for design.</p>
<p class="myabilities">Mobile phones, tablets, desktops — it’s hard to even categorise these days. I specialise in embracing the Web’s ubiquity. It’s my job to design for all experiences.</p>
<p class="myabilities">Great design can’t be achieved in isolation. In fact, it’s two development practices that are the secret; feature detection and progressive enhancement. That means a multi-tiered design to match the capabilities of any browser.</p>
<p class="myabilities">Complicated for us but for users — it just works.</p>
</div>
這裏是[理由](http://stackoverflow.com/a/18298969/1725764 )爲什麼你不能像':nth-child'或':first-of-type'那樣使用CSS3僞類來做到這一點。 –
[CSS3選擇器:類名的第一個類型?]的可能的重複(http://stackoverflow.com/questions/6447045/css3-selector-first-of-type-with-class-name) – Adrift