去学了下zen coding,老师后面那5段可以下面这句生成?
(div#item$.item>h2+ul>li*9>a[href="#"]>img[src="F.jpg"])*5
(div#item$.item>h2+ul>li*9>a[href="#"]>img[src="F.jpg"])*5
2017-07-20
items.each(function(){
var m = $(this);
var itemTop = m.offset().top;
if(top > itemTop)
{
currentId = "#" + m.attr("id");
}
else {
return false;
}
// console.log(itemTop);检测
});
var m = $(this);
var itemTop = m.offset().top;
if(top > itemTop)
{
currentId = "#" + m.attr("id");
}
else {
return false;
}
// console.log(itemTop);检测
});
2017-06-28
<script>
// 滚动条发生滚动
$(document).ready(function(){
$(window).scroll(function(){
var top = $(document).scrollTop();
console.log(top);
});
});
</script>
// 滚动条发生滚动
$(document).ready(function(){
$(window).scroll(function(){
var top = $(document).scrollTop();
console.log(top);
});
});
</script>
2017-06-28