字母网页界说免费素材下载 js完成超棒的字母链接文字成果

资源魔 39 0
正在字母内写上链接的文字,字母的空缺区不成点击,成果十分没有错
正在网页<head>区增加款式界说
[code]
<style type="text/css">
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;}
</style>
[/code]
正在网页<body>区增加如下HTML代码界说
[code]
<ul id="off">
<li><a class="ccc" href="//www.sharejs.com"><em class="hz toph"></em><em class="vtc"></em><em class="hz both">DEMOS</em><span></span></a></li>
<li><a class="sss" href="index.html"><em class="hz toph"></em><em class="bk bktl"></em><em class="hz midh">MENUS</em><em class="bk bkbr"></em><em class="hz both"></em><span></span></a></li>
<li class="gap"><a class="sss" href="../layouts/index.html"><em class="hz toph"></em><em class="bk bktl"></em><em class="hz midh">LAYOUTS</em><em class="bk bkbr"></em><em class="hz both"></em><span></span></a></li>
<li><a class="ppp" href="../boxes/index.html"><em class="hz toph"></em><em class="bk bktl"></em><em class="bk bktr"></em><em class="hz midh">BOXES</em><em class="vtp bkbl"></em><span></span></a></li>
<li><a class="lll" href="../mozilla/index.html"><em class="vtl"></em><em class="hz both">MOZILLA</em><span></span></a></li>
<li><a class="aaa" href="../ie/index.html"><em class="hz toph"></em><em class="bk bktr"></em><em class="hz midh">EXPLORER</em><em class="bk bkbl"></em><em class="bk bkbr"></em><em class="hz both"></em><span></span></a></li>
<li><a class="yyy" href="../opacity/index.html"><em class="vtp toph"></em><em class="vtp topr"></em><em class="hz midh">OPACITY</em><em class="bk bkbr"></em><em class="hz both"></em><span></span></a></li>
</ul>
[/code]

标签: 字母 滑动扩展

抱歉,评论功能暂时关闭!