摘要:
1 // 接口构造函数,name为接口名,methods为字符串数组表明接口需要实现的方法 2 var Interface = function (name, methods) 3 { 4 if (arguments.length != 2) 5 { 6 throw Error("接口构造函数需要2个参数"); 7 } // end if 8 this.name = name; 9 this.methods = [];10 for (var i = 0, len = methods.length; i < len; ++i)11 {12 if (t... 阅读全文
摘要:
1。作者还是全部float向左 1 #wrapper { 2 width: 100%; 3 float: left; 4 } 5 #content { 6 margin-left: 50%; 7 } 8 #navigation { 9 width: 25%;10 float: left;11 margin-left: -100%;12 }13 #extra {14 width: 25%;15 float: left;16 margin-left: -75%;17 }18 #footer {19 clear: both;20 }2.全部float向右 1 ... 阅读全文