forked from sofish/typo.css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookmark.html
22 lines (20 loc) · 999 Bytes
/
bookmark.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>书签 - Typo.css</title>
<link rel="stylesheet" href="http://typo.sofish.de/typo.css">
<style>
html{background:#ccc;}
.bookmark{padding:50px 120px 50px 90px;margin:0 auto;border-radius:10px;position:absolute;top:20%;left:50%;margin-left:-169px;margin-top:-20px;background:#fff;}
.bookmark a{color:green;font:18px courier;border:1px dashed #ccc;background:#f8f8f8;display:inline-block;margin-left:15px;}
.bookmark a:hover{text-decoration:none;background:#ffc;}
</style>
</head>
<body class="typo">
<div class="bookmark">
<small>把它拖到您的书签栏 → </small>
<a href='javascript:(function(){var%20a=document,b=a.body,c=a.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("href","http://typo.sofish.de/typo.css");a.querySelector("head").appendChild(c);b.style.backgroundColor="white";b.style.padding="30px";b.className+="%20typo"})()'>typo</a>
</div>
</body>
</html>