一,事件绑定通用方法:bind(type,[,data],fn) 三个参数分别是事件类型(如"click"),相关数据(可选项),事件处理函数简单写法:click(fn),mouseover,mouseout等合成事件:hover(fn1(){},fn2(){}):合成了mouseenter和mou...
分类:
Web程序 时间:
2015-05-06 12:41:42
阅读次数:
140
@charset "utf-8";/* CSS Document */html,body{margin:0;padding:0;font-family:"宋体";font-size:14px;}a,a:hover{text-decoration:none}ul,li,p,img,table,tr,t...
分类:
Web程序 时间:
2015-05-05 10:09:10
阅读次数:
138
定义链接样式 CSS为一些特殊效果准备了特定的工具,我们称之为“伪类”。其中有几项是我们经常用到的,下面我们就详细介绍一下经常用于定义链接样式的四个伪类,它们分别是: :link :visited :hover :active 因为我们要定义链接样式,所以其中必不可少的就是超级链接中的锚标签...
分类:
Web程序 时间:
2015-05-04 23:49:21
阅读次数:
142
直接看效果点这里HTML分页插件View CodeCSS@charset "utf-8";html, body { margin: 0; padding: 0; }a,a:link,a:visited,a:hover,a:active,a:focus { text-decoration: none;...
分类:
其他好文 时间:
2015-05-04 13:28:04
阅读次数:
208
一、鼠标移上去 字体颜色变白,背景变化代码:.header_center_nav a:hover{color:#f8faff;background:url(../images/menu_bg_here.gif) no-repeat;}例图:二、导航高亮显示(字体白色,背景)代码:.header_ce...
分类:
其他好文 时间:
2015-04-30 17:41:53
阅读次数:
219
a { cursor: pointer; text-decoration: none; hide-focus: expression(this.hideFocus=true); outline: none;} a:link, a:visited, a:hover, a:...
分类:
其他好文 时间:
2015-04-30 14:05:43
阅读次数:
145
var $=function(_this)//调用,把this传递过来
{
return new Base(_this);
};
//对象式
function Base(_this)
{
//创建一个数组来获取节点和节点的数组
this.elements=[];//私有化,不共用
if(_this!=undefined)//这里的_this...
分类:
其他好文 时间:
2015-04-30 08:54:51
阅读次数:
114
一款利用html5的figcaption标签和css33d transform,css3 transition等技术制作的图片标题hover效果,共有8种不同的惊艳效果。下载演示地址
分类:
Web程序 时间:
2015-04-28 13:50:13
阅读次数:
145
/*css*/a:link{ color: blue;}a:visited{ color: green;}a:hover{ color: red;}a:focus{color:black;}a:active{ color: yellow;}/*html*/click melink表示链接在正常情况下...
分类:
其他好文 时间:
2015-04-26 16:35:30
阅读次数:
480