:target {
width
:
100px
;
height
30px
background-color
#ACBEF6
text-align
center
line-height
}
:target { width: 100px; height: 30px; background-color: #ACBEF6; text-align: center; line-height: 30px; }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
link
href
"css/style.css"
rel
"stylesheet"
</
body
a
"#chapter1"
>Chapter1</
br
"#chapter2"
>Chapter2</
"#chapter3"
>Chapter3</
div
p
id
"chapter1"
"chapter2"
"chapter3"