Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save melnikovslava2010/dfc6ce372943b48dcf87f4bd89afdb62 to your computer and use it in GitHub Desktop.
Save melnikovslava2010/dfc6ce372943b48dcf87f4bd89afdb62 to your computer and use it in GitHub Desktop.
Всплывающая подсказка, title
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Всплывающая подсказка</title>
<style>
meter {
position: relative;
}
meter:hover::after {
content: attr(data-description);
background: #ffe;
padding: 5px;
border: 1px solid #666;
position: absolute;
top: 20px;
}
</style>
</head>
<body>
<p>Температура воды</p>
<meter value="0" max="100" low="10" high="60" data-description="Низкая"></meter>
<meter value="30" max="100" low="10" high="60" data-description="Нормальная"></meter>
<meter value="80" max="100" low="10" high="60" data-description="Горячая"></meter>
<meter value="100" max="100" data-description="Кипяток"></meter>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment