Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
したがって、CSSでHTMLリストを次のようにスタイル設定しています。
.ulClaims li { font-weight: bold; color: #5c6467; font-size: 14px; }
' li 'タグの一部にasp:textboxesがあります。とにかく、.ulClaimsクラスでそれらのスタイルを設定して、物事を単純にすることができますか?
CSS 定義は、liの子孫であるにのみスタイルを適用してい.ulClaimsます。「テキストボックス」のスタイルを設定するには、次のようなものを使用します。
li
.ulClaims
.ulClaims li input[type="text"] { /* ... definitions ... */ } .ulClaims li textarea { /* ... definitions ... */ }
これは、 の子孫であるinput type="text"orを直接ターゲットにします。textarea.ulClaims li
input type="text"
textarea
.ulClaims li