-
全看完了,讲的很好,可以看出老师有严重代码简洁癖。而且对重复代码还是不厌其烦多写一遍给同学看,希望以后老师能多出视频给我们看 (^_^)查看全部
-
$toolbar-size:52px; *{margin: 0;padding: 0;} .toolbar{ position: fixed; left: 50%; bottom: 5px; margin-left: -$toolbar-size / 2; } .toolbar-item{ position: relative; display: block; width: $toolbar-size; height: $toolbar-size; background-image: url("../img/toolbar.png"); background-repeat: no-repeat; margin-top: 1px; transition: background-position 1s; &:hover{ .toolbar-layer{ opacity: 1; filter: alpha(opacity=100); transform: scale(1); } } } .toolbar-item-weixin{ background-position: 0 -789px; &:hover{ background-position: 0 -860px; } .toolbar-layer{ height: 212px; background-position: 0 0; } } .toolbar-item-feedback{ background-position: 0 -426px; &:hover{ background-position: 0 -488px; } }查看全部
-
data-main定义入口文件,即加载完该文件后会立即加载的文件 reqirejs.config:为模块定义别名; requirejs.config({ paths:{ jquery:'jquery-1.11.3.min' } }) requirejs:引入写好的模块; requirejs(['jquery'],function($){ }) 第一个参数是要引入的模块,可以是多个,第二个是回调函数,传入的参数是用来代替引入的模块 define:用来编写模块 define(['jquery'],function($){ return { isEmpty:function(){}, checkLenght:function(){}; } })查看全部
-
sass运算符两边一定要有空格查看全部
-
重点查看全部
-
sass课程总结 extend 继承 @mixin 函数名(参数)查看全部
-
define(["jquery", "scrollto"], function($, scrollto) { function BackTop(el, opts) { this.opts = $.extend({}, BackTop.DEFAULTS, opts); this.$el = $(el); this.scrollto = new scrollto.ScrollTo({ dest: 20, speed: this.opts.speed }); if (this.opts.mode == "move") { this.$el.on("click", $.proxy(this._move, this)); } else { this.$el.on("click", $.proxy(this._go, this)); } $(window).on("scroll", $.proxy(this._checkPosition, this)); }; BackTop.DEFAULTS = { mode: "move", pos: $(window).height(), speed: 800 }; BackTop.prototype._move = function() { this.scrollto.move(); }; BackTop.prototype._gp = function() { this.scrollto.go(); }; BackTop.prototype._checkPosition = function() { if ($(window).scrollTop() > this.opts.pos) { this.$el.fadeIn(); } else { this.$el.fadeOut(); } }; return { BackTop: BackTop }; });查看全部
-
html结构查看全部
-
原理,div span a img查看全部
-
解决中文支持问题的方法: E:\Koala2\rubygems\gems\sass-3.4.9\lib\sass\engine.rb 在所有的require下面复制这段话 Encoding.default_external = Encoding.find('utf-8')查看全部
-
$.proxy(对象的方法,this指向的对象);查看全部
-
解决中文支持问题的方法: E:\Koala2\rubygems\gems\sass-3.4.9\lib\sass\engine.rb 在所有的require下面复制这段话 Encoding.default_external = Encoding.find('utf-8')查看全部
-
$定义sass变量 标签下的$相当于this查看全部
-
koala-app.com/index-zh.html koala是一个前端预处理器语言图形编译工具,支持Less、Sass、Compass、CoffeeScript,帮助web开发者更高效地使用它们进行开发。 sass文件格式 .scss查看全部
-
解决中文支持问题的方法: E:\Koala2\rubygems\gems\sass-3.4.9\lib\sass\engine.rb Encoding.default_external = Encoding.find('utf-8')查看全部
举报
0/150
提交
取消