CSS琐碎[1]

(1)letter-spacing

设置字符间局,用长度指定(百分比兼容性不好)

没有间距

间距6px

API:http://gucong3000.github.io/css-book/properties/text/letter-spacing.htm 

(2)location.hash

网址#后内容

详细:http://www.cnblogs.com/yeer/archive/2013/01/21/2869827.html#11

(3)rel = nofollow

SEO,告诉搜索引擎爬虫无需抓取目标页,在友情链接中经常使用

详细:http://www.cnblogs.com/shuchao/archive/2009/09/19/rel-nofollow.html

(5)使用百分比

在父元素高度,宽度不固定时,子元素可以使用百分比来进行定位

 1 <html>
 2     <head>
 3         <meta charset="utf-8" />
 4         <title></title>
 5         <style type="text/css">
 6             .box{
 7                 display: inline-block;
 8                 height: 40px;
 9                 position: relative;
10                 background-color: #000;
11                 color: #FFF;
12                 margin: 100px 100px;
13                 line-height: 40px;
14             }
15             .tip{
16                 display: inline-block;
17                 position: absolute;
18                 height: 20px;
19                 background-color: blue;
20                 color: #FFF;
21                 top: 100%;
22                 right: 100%;
23                 line-height: 20px;
24             }
25         </style>
26     </head>
27     <body>
28         <div class="box">
29             <a href="#">测试</a>
30             <a href="#" class="tip">Tip</a>
31         </div>
32     </body>
33 </html>
View Code
原文地址:https://www.cnblogs.com/yunxianli/p/4280965.html