首页htmlbackgroundCSS Property Value - 如何比较块和内联元素之间的背景

CSS Property Value - 如何比较块和内联元素之间的背景

我们想知道如何比较块和内联元素之间的背景。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
a {
  background-color: blue;
}

li {
  background-color: red;
}
</style>
</head>
<body>
  <ul>
    <li><a href="#">blabla</a></li>
    <li>blablabal</li>
  </ul>
</body>
</html>