New Document
div{
margin:20px;
}
Oscar Redemption
Here`s your chance to set the record straight:tell us what year the wrong film got nominated,and which film shouldhave received a n...
分类:
Web程序 时间:
2015-01-10 21:06:49
阅读次数:
135
packagecom.ttol.spider;
importjava.io.IOException;
importjava.net.URL;
import
java.util.List;
importorg.jdom.Document;
importorg.jdom.Element;
import
org.jdom.JDOMException;
importorg.jdom.input.SAXBuilder;
publicclassSpiderRss{
publicstaticvoidmain(String..
分类:
其他好文 时间:
2015-01-10 18:29:35
阅读次数:
143
开发中经常会用到复制的功能,在 IE 下实现比较简单。但要想做到跨浏览器比较困难了。本文将介绍一个跨浏览器的库类 Zero Clipboard 。它利用 Flash 进行复制,所以只要浏览器装有 Flash 就可以运行,而且比 IE 的 document.execCommand("Copy") 更加...
分类:
Web程序 时间:
2015-01-10 18:04:16
阅读次数:
198
//javascriptvar ul = document.getElementById('ul);var as = ul.getElementsByTagName('a');for(var i = 0; i <as.length; i++) { as.item(i).onmouseover ...
分类:
编程语言 时间:
2015-01-10 12:25:47
阅读次数:
194
New Document
div{
margin-bottom:10px;
width:200px;
height:100px;
}
@keyframes myfirst
{
from {background: red;}
to {background: yellow;}
}
@-moz-keyframes myfirst /* Firefox */
{
from {background:...
分类:
Web程序 时间:
2015-01-10 11:19:52
阅读次数:
232
假如页面中有以下菜单
首页
归档
分类
关于
如果不是Bootstrap自行定义active CSS样式
$(document).ready(function(){
$(".navbar-nav li").click(function(){
$(this).addClass("active").siblings().removeClass("active");...
分类:
Web程序 时间:
2015-01-09 23:51:50
阅读次数:
530
??
1、获取屏幕高度,
2、获取页面高度。
3、判断两者之间的的大小。当页面高度大于屏幕高度时就不添加浮动到底布的样式。否则就添加。不去判断是否滚动屏幕。
获取屏幕高度$(window).height();$(document).height();
浮动到底布:
.footer{
position:fixed;
width:100%;
display:block;
botto...
分类:
其他好文 时间:
2015-01-09 23:48:18
阅读次数:
254
定义和用法
constructor 属性返回对创建此对象的数组函数的引用。
语法
object.constructor
例子:
var test=new Array();
if (test.constructor==Array)
{
document.write("This is an Array");
}
if (test.constructor==Boole...
分类:
编程语言 时间:
2015-01-09 22:21:04
阅读次数:
479
浏览器 怪异模式(Quirks Mode) 与 标准模式(Standards Mode)怪异模式,浏览器使用自己的方式解析渲染页面,在不同的浏览器就会显示不同的样式。标准模式,浏览器使用W3C的标准解析渲染页面。通过 document.compatMode 的值可以知道当前用的是什么模式。BackC...
分类:
其他好文 时间:
2015-01-09 20:56:26
阅读次数:
125
1 var bb_mes_con = $('bb_mes_con');2 var mes_html = document.createElement('div');3 mes_html.setAttribute('id', 'mes_html');4 mes_html.innerHTML = ""+...
分类:
移动开发 时间:
2015-01-09 19:19:53
阅读次数:
225