搜索

关于meta keywords那些事儿

1203

摘自wiki:The keywords attribute

Search engines began dropping support for metadata provided by the meta element in 1998, and by the early 2000s, most search engines had veered completely away from reliance on meta elements. In July 2002, AltaVista, one of the last major search engines to still offer support, finally stopped considering them.

No consensus exists whether or not the keywords attribute has any effect on ranking at any of the major search engines today. It is speculated that it does, if the keywords used in the meta can also be found in the page copy itself. With respect to Google, thirty-seven leaders in search engine optimization concluded in April 2007 that the relevance of having your keywords in the meta-attribute keywords is little to none and in September 2009 Matt Cutts of Google announced that they are no longer taking keywords into account whatsoever. However, both these articles suggest that Yahoo! still makes use of the keywords meta tag in some of its rankings. Yahoo! itself claims support for the keywords meta tag in conjunction with other factors for improving search rankings. In Oct 2009 Search Engine Round Table announced that “Yahoo Drops The Meta Keywords Tag Also” but informed us that the announcement made by Yahoo’s Senior Director of Search was incorrect. In the corrected statement Yahoo Senior Director of Search states that “…What changed with Yahoo’s ranking algorithms is that while we still index the meta keyword tag, the ranking importance given to meta keyword tags receives the lowest ranking signal in our system…. it will actually have less effect than introducing those same words in the body of the document, or any other section.

继续阅读»

关于JS预解析一道题

1009

var i=10;
function a() {
    alert(i);
    var i = 2;
    alert(i);
};
a();

挺经典的一道题,结果出得让人不得不觉得奇怪,想知道是虾米回事,内部到底是怎么执行的。

继续阅读»

[每日一练]面向对象JavaScript继承例子一

0714


	function Person(){
		this.name;
		this.age;
		this.sex;

		this.getName = function(){
			return this.name;
		}

		this.getSex = function(){
			return this.sex;
		}

		this.getAge = function(){
			return this.age;
		}
	}

	function Girl(){
		this.sex = "female";
		this.isSingle = true;
	}

	Girl.prototype = new Person();
	var jessica = new Girl();
	jessica.name = "Jessica";
	jessica.age = "24";

在面向对象的语言中,使用类来创建一个自定义对象。在JavaScript中一切都可以是对象,用什么办法来创建一个自定义对象?

继续阅读»

[每日一学]live vs bind

0418

live()与bind()不同的是一次只能绑定一个事件。

这个方法跟传统的bind很像,区别在于用live来绑定事件会给所有当前以及将来在页面上的元素绑定事件(使用委派的方式)。比如说,如果你给页面上所有的li用live绑定了click事件。那么当在以后增加一个li到这个页面时,对于这个新增加的li,其click事件依然可用。而无需重新给这种新增加的元素绑定事件。

要移除用live绑定的事件,请用die方法

继续阅读»

windows media player播放器把div给遮住的问题

0124

通常,我们碰到flash把div给遮住的问题。想到的解决方案都是:

IE:

	<param name="wmode" value="opaque">

Firefox:

	<embed src="/xx.swf" quality="high" wmode="transparent"></embed>

继续阅读»

Remove spaces between inline-block elements

1110

今天下午三思问我,关于inline-block元素之间的缝隙怎么去除,怎么做到inline一样?

犁地哥

其实对于这个问题的解决方法就是删除换行

删除空格

继续阅读»

[译]更简单的CSS Grid

1014

上周我谈到960 Grid System is Getting Old.出人意料地收到很多评论。好像大家用960gs是因为“黄金比例”——所有值都是偶数。我是一位设计师,不是一个网格科学家。为什么要为了适应960gs而限制你的布局?网格应该是在设计中帮你忙,而不是限制你的创造力。之前我提到的978 grid,不仅只为了增加页面宽度,而且是放宽了列间距,这样用户阅读起来更舒服。今天,我将继续上篇,对我最初提出一些观点做更进一步的阐述。(原文中的ellaborate应改为elaborate [vi. 详尽说明;变得复杂 | vt. 详细制定;详尽阐述;详细描述])

960.gs的问题

1.窄小的间距

我做了一个Photoshop效果图,来展示20px的间距在960gs是什么样的。对于现代的设计来说,这间距有点太窄小了。

960gs

继续阅读»

用Jquery玩玩Font

0709

Ashung给我看他的08年写的一个”web font v 0.3“的页面,偶也用jquery小玩了一下,嘿嘿,在线演示

web font

继续阅读»

Multiple Borders with Simple CSS

0707

不用多层div嵌套,不用图片,我们只要用简单的CSS就能实现多层边框的效果,其方法是通过:after 和 :before 伪类。效果如下图。

multi-border-with-simple-css

继续阅读»

Email客户端支持CSS概述

0701

原文: http://www.campaignmonitor.com/css/

由于电子邮件客户数量一直呈增长的趋势,我们需要了解不同的电子邮件客户端对CSS的支持状况。这里是针对市场上10个最流行的电子邮件客户端对CSS支持做了一份概述指南。

继续阅读»