App下載
首頁htmlui_olHTML Element Style - 如何默認情況下創(chuàng)建懸停樣式

HTML Element Style - 如何默認情況下創(chuàng)建懸停樣式

我們想知道如何默認情況下創(chuàng)建懸停樣式。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
ul li:first-child, ul li:hover {
  color: blue;
}

ul li:first-child:hover {
  color: black;
}
</style>
</head>
<body>
  <ul>
    <li>one</li>
    <li>two</li>
    <li>three</li>
  </ul>
</body>
</html>