用户登陆:
设为首页 | 加入收藏 | 全站地图
您现在的位置: 星星雨设计站 >> 网络学院 >> 网页设计 >> CSS导航实例 >> 教程正文
Letter links
作者:佚名    教程来源:本站原创    点击数:    更新时间:2007-12-24

 

Information

Just one more demonstration of non rectangular links with replacement of active/focus borders with css styled alternatives.

These links are just a styled unordered list.

The links only occupy the letter area and will not be selectable until the mouse pointer is actually on each letter.

This is a practical demonstration of a use for this method and all the links are active.

nDLRt : nicholls Dotted Line Replacement technique.

 

=================================

 

ul#off {list-style-type:none; padding:0; margin:0; width:750px; height:130px; margin:2em auto; position:relative;}
ul#off li {display:block; width:75px; height:100px; margin:10px; position:relative; float:left;}
ul#off li.gap {margin-right:75px;}
ul#off a {display:block; width:0; height:0; text-decoration:none; position:absolute; left:0; top:0;}

ul#off a em {cursor:pointer; font-style:normal; font-weight:bold;}
ul#off a span {display:none;}

ul#off a em.hz {position:absolute; display:block; height:20px; width:75px; cursor:pointer; text-align:center; line-height:20px; color:#fff;}
ul#off a em.vtc {position:absolute; display:block; height:60px; width:25px; cursor:pointer; left:0; top:20px;}
ul#off a em.vtl {position:absolute; display:block; height:80px; width:25px; cursor:pointer; left:0; top:0;}
ul#off a em.vtp {position:absolute; display:block; height:40px; width:25px; cursor:pointer;}
ul#off a em.bk {position:absolute; display:block; height:25px; width:25px; cursor:pointer;}

ul#off a em.toph {top:0; left:0;}
ul#off a em.midh {top:40px; left:0;}
ul#off a em.both {top:80px; left:0;}
ul#off a em.topr {top:0; left:50px;}

ul#off a em.bktl {top:20px; left:0;}
ul#off a em.bktr {top:20px; left:50px;}
ul#off a em.bkbl {top:60px; left:0;}
ul#off a em.bkbr {top:60px; left:50px;}

.ccc em {background:#939;}
.sss em {background:#939;}
.ppp em {background:#39b;}
.lll em {background:#39b;}
.aaa em {background:#333;}
.yyy em {background:#39b;}

ul#off a:hover {color:#c00; background:#ddd;}
ul#off a.ccc:hover em {background:#606; color:#c6c;}
ul#off a.sss:hover em {background:#606; color:#c6c;}
ul#off a.ppp:hover em {background:#069; color:#6ce;}
ul#off a.lll:hover em {background:#069; color:#6ce;}
ul#off a.aaa:hover em {background:#000; color:#888;}
ul#off a.yyy:hover em {background:#069; color:#6ce;}
ul#off a:hover span {display:block; width:75px; height:1px; font-size:3px; position:absolute; top:110px; left:0; border-top:5px dashed #000;}
ul#off a:active, ul#off a:focus {background:#eee;}
ul#off a:active em, ul#off a:focus em {background:#f0ca93; color:#000;}
ul#off a:active span, ul#off a:focus span {border-top:5px solid #f0ca93;}

 

发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口教程录入:冰河    责任编辑:冰河 
  • 上一篇教程:

  • 下一篇教程:
  • 精彩视频
    最新热门
    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明