我只需要使用E:input:nth-of-type(n)
將樣式應用於特定的輸入標籤。如何使用輸入:nth-of-type(n)選擇輸入標籤?
請看看他的jsfiddle: http://jsfiddle.net/nLK2w/3/
你能指出我什麼是錯誤的嗎?將有意義使用E:nth-of-type(n)
而不是?
<div class="snippet-navsetupfieldschosen" style="">
<h1>xxx</h1><ul>
<li>
<input id="regionselection1" type="text" readonly="" name="regionselection1" data-href="regionselection1" class="focusable">
</li>
<li>
<input id="regionselection2" type="text" readonly="" name="regionselection2" data-href="regionselection2" class="focusable">
</li>
</ul>
</div>
.snippet-navsetupfieldschosen ul li input:nth-of-type(1) {
border-top-left-radius: 30px;
border-top-right-radius: 30px;
}
很好,謝謝你的小提琴:) – GibboK