摘要: 1. 1 #container { 2 width: 900px; 3 margin: 0 auto; 4 } 5 #wrapper { 6 float: left; 7 } 8 #content { 9 margin: 0 200px;10 }11 #navigation {12 width: 200px;13 float: left;14 margin-left: -100%;15 }16 #extra {17 width: 200px;18 float: left;19 margin-left: -200px;20 }21 #footer {22 ... 阅读全文
posted @ 2013-11-11 20:37 我的百科全书 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1.#wrapper宽度100%全部float向左 1 #wrapper { 2 width: 100%; 3 float: left; 4 } 5 #content { 6 margin-left: 50%; 7 } 8 #navigation { 9 float: left;10 width: 25%;11 margin-left: -75%;12 }13 #extra {14 float: left;15 width: 25%;16 margin-left: -100%;17 }18 #footer {19 clear: both; 20 }2.#... 阅读全文
posted @ 2013-11-11 20:10 我的百科全书 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2013-11-11 19:53 我的百科全书 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2013-11-11 10:55 我的百科全书 阅读(144) 评论(0) 推荐(0) 编辑