代码示例库

这是我存放代码的地方.

Controlling Ratios of Flex Items Along the Main Axis 的原文:https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Controlling_Ratios_of_Flex_Items_Along_the_Main_Ax
文中示例代码:
http://jsbin.com/vowahik/edit?html,css,output

加载动画: http://jsbin.com/gubutuvexa/edit?html,css,output

轮播图: http://jsbin.com/naqogak/edit?html,css,js,output
轮播图重构: http://jsbin.com/gawudok/edit?js,output
轮播图改进(面向对象): http://jsbin.com/keyoqax/edit?js,output

鼠标事件执行顺序: http://jsbin.com/bimuvif/edit?html,js,output
鼠标事件的clientX, clientY属性:http://jsbin.com/rajujad/edit?html,css,js,output
pageX, pageY属性: http://jsbin.com/yenamin/edit?html,css,js,output

弹出层示例1: http://jsbin.com/bunerin/edit?html,css,js,output
弹出层示例2: http://jsbin.com/yamuvaw/edit?html,css,js,output

圣杯布局:http://jsbin.com/vumawul/edit?html,css,output
双飞翼布局:http://jsbin.com/rumiyok/1/edit?html,css,output

事件对象中target和currentTarget的区别: http://jsbin.com/vegogag/edit?html,js,output
currentTarget为事件处理程序绑定的对象(不会变的), target为事件正在处理的目标(可能会变)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值