| 
 | 
 
 
发表于 2017-5-4 16:00:55
|
显示全部楼层
 
 
 
 不想安装字体,图标点显示出来一个框框  
- <!DOCTYPE html>
 
 - <html lang="en">
 
 - <head>
 
 -         <meta charset="UTF-8">
 
 -         <title>超链接动画演示</title>
 
 -         <style type="text/css">
 
 -                 body{
 
 -                         margin-top: 333px;
 
 -                         margin-left: 333px;
 
 -                         text-align: center;
 
 -                 }
 
 -                 span{
 
 -                         color: red;
 
 -                         font-size: 40px;
 
 -                         font-family: "Comic Sans MS", cursive;
 
 -                 }
 
 -                 a{
 
 -                         color: #FFF;
 
 -                         font-size: 40px;
 
 -                         text-decoration: none;
 
 -                         font-family: "Comic Sans MS", cursive;
 
 -                         transition: all 2.6s ease;
 
  
-                         display: block;
 
 -                         height: 66px;
 
 -                         border: 1px solid #FF0088;
 
 -                         line-height: 66px;
 
 -                         border-radius: 6px;
 
  
-                         width:600px;
 
 -                         box-sizing: border-box;
 
 -                         padding-left: 160px;
 
 -                         position: relative;
 
 -                 }
 
 -                 a:hover{
 
 -                         color:#00AA00;
 
 -                         background:#555555;
 
 -                         padding-left: 20px;
 
 -                         background: rgba(0,0,0,.6);
 
 -                         /*
 
 -                         设置鼠标滑过按钮时,左侧内边距缩小,这样字体部分就会往左跑。
 
 -                         背景色用60%透明度,提升体验。
 
 -                         */
 
 -                 }
 
 -                 a:hover::after{
 
 -                         right: 6%;
 
 -                         /*
 
 -                         最后为鼠标指针滑动下after伪元素设置新的属性。
 
 -                         向右移动,并停止在右边整体宽度6%的位置。
 
 -                         */
 
 -                 }
 
 -                 @font-face {
 
 -                         font-family: 'icon-font';
 
 -                         /*src: url('flat-ui-icons-regular.ttf'), url('flat-ui-icons-regular.eot'), url('flat-ui-icons-regular.woff'), url('flat-ui-icons-regular.svg');*/
 
 -                 }
 
 -                 a::after{
 
 -                         /*font-family:'icon-font';*/
 
 -                         content: '\e607';
 
 -                         position: absolute;
 
 -                         right: 85%;
 
 -                         transition: all .8s;
 
 -                 }
 
 -         </style>
 
 - </head>
 
 - <body>
 
 -         <a href="http://bbs.fishc.com/forum.php?mod=collection&action=view&ctid=539">HTML5-庖丁解牛</a>
 
 - </body>
 
 - </html>
 
  复制代码 |   
- 
 
 
 
 
 
评分
- 
查看全部评分
 
 
 
 
 
 |