2017年3月10日
摘要:
前言 美国社会心理学家艾略特•阿伦森是美国心理学会110年历史上唯一一位获得杰出著作奖(1975年)、杰出教学奖(1980年)和杰出研究奖(1999年)三项大奖的心理学家,而他的《社会性动物》被誉为“美国社会心理学的《圣经》”。 “从本质上讲人是一种社会性动物;那些生来离群索居的个体,要么不值得我们
阅读全文
posted @ 2017-03-10 18:12
馬小妹
阅读(2721)
推荐(0)
摘要:
问题 今天用XeLaTex排版毕业论文,发现插入的pdf格式图片无法显示——图片应在的位置是空白。但是在windows系统下编译就不存在这种情况。网上搜了一番后,得知原因是由于pdf文件版本过高引起的。但是网上的解决方案写的并不清楚或不适用于自己的Texshop版本,比如 在texshop的配置文件
阅读全文
posted @ 2017-03-10 15:33
馬小妹
阅读(1653)
推荐(0)
/*
* 功能: 创建一个可以让页面滚动到顶部的按钮, 常见于各种社交网站的微博列表.
* 备注: DOM被设置成了浮动的, 用户可以自己设定位置, 传入right, bottom参数即可
还可以配置滚到条到多高的时候会显示插件图标.
*/
(function ($) {
$.fn.scrolltop = function (options) {
var opts = $.extend({}, $.fn.scrolltop.defaults, options);
var run2top = function () {
var scrollDist = $(window).scrollTop();
if (scrollDist > 0) {
scrollDist -= opts.topSpeed;
scrollDist = Math.max(scrollDist, 0);
$(window).scrollTop(scrollDist);
setTimeout(run2top, 1);
}
};
return this.each(function () {
var $this = $(this);
$this.css("opacity", "0.3");
$this.css("background", "url('u=4251301862,936291425&fm=214&gp=0.jpg') no-repeat");
$this.css("width", opts.width);
$this.css("height", opts.height);
$this.css("position", "fixed");
$this.css("right", opts.right);
$this.css("bottom", opts.bottom);
$this.hover(
function () {
$(this).css('opacity', '1.0');
},
function () {
$(this).css('opacity', '0.5');
}
);
$this.click(function () {
//$(window).scrollTop(0);
run2top();
});
$(window).scroll(function () {
var scrollDist = $(window).scrollTop();
if (scrollDist >= opts.heightThreshhold) { //当滚动条离顶部超过阈值的时候, 就显示
$this.css("display", "block");
} else {
$this.css("display", "none");
}
});
});
};
$.fn.scrolltop.defaults = {
heightThreshhold: 1000,
width: "50px",
height: "50px",
right: "8%",
bottom: "30px",
topSpeed: 50
};
})(jQuery);