首页htmltargetCSS Property Value - 如何CSS3 target伪类

CSS Property Value - 如何CSS3 target伪类

我们想知道如何CSS3 target伪类。

<!DOCTYPE html>
<html>
<head>

<style type='text/css'>
p:target {
  background: #fc0;
}
</style>
</head>
<body>
  <a href="#demo">Click me to Highlight</a>
  <p id="demo">Highlight this text with that link up there.</p>
</body>
</html>