You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/>
<title>Virtual Selector Example</title>
<style>
body {
counter-reset: section;
}
h1::before {
content: '###';
}
h2::before {
counter-increment: section;
content: "Section" counter(section) ": ";
}
p {
display: none;
}
div:hover p {
display: block;
}
/* 마우스로 컨텐츠 블럭 지정 */
::selection {
color: red;
background: yellow;
}
.content::first-letter {
color: #ff0000;
font-size: xx-large;
font-weight: bold;
}
.content::first-line {
color: #0000ff;
font-variant: small-caps;
}
</style>
</head>
<body>
<h1>Virtual Selector Example</h1>
<h2>HTML Tutorial</h2>
<h2>CSS Tutorial</h2>
<h2>JavaScript Tutorial</h2>
<div>Show Message - Mouse over..
<p>
<b>Note:</b>This message will show when mouse over "Show Message..."
</p>
</div>
<div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>
</body>
</html>