第一种方法,用的是jQuery。 优点:兼容所有浏览器,包括IE什么的。
缺点:代码也很短,没什么缺点。
jQuery(document).ready(function($){
$('.entry-title a').hover(function() {
//.entry-title a 改成你标题的样式名称,可以应用多个链接,用逗号隔开
$(this).stop().animate({'marginLeft': '10px'}, 200);