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.
私はwinJSアプリケーションに取り組んでいます.winJSリストビューで最新の画像を強調表示する必要があります.
CSS3セレクターを使用してこれを実現できます。
CSS3
.win-listview img:last-child { /* highlight style */ }
JS で選択して変更するには:
var listview = document.querySelector('.win-listview'); var firstChild = listview.firstChild(); // Perform any needed action to firstChild