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