Anwenden von css-Stil, um Kind-element

Hier ist ein Beispiel

<html>
<head>
    <style>
        .test > input {     //this is wrong.
            color:red;
        }
    </style>
</head>

<body>
    <div class="test">
        <div>
            <input></input>
        </div>
    </div>
</body>
</html>

Was ich will zu tun ist, wenden Sie einen Stil auf input-element. So wählen Sie ein input-element. mit Hilfe von div-css-Stil Namen.

Entfernen Sie einfach >

InformationsquelleAutor Mayank Pandya | 2013-08-13

Schreibe einen Kommentar