摘要: background-position 1 <style type="text/css"> 2 input{ 3 width:197px; 4 height:20px; 5 margin-top:7px; 6 border:1px solid #000; 7 background-repeat:no-repeat; 8 padding-left:20px; 9 background-position:2px 4px;10 11 }12 .username{13 background-image:url(1.png);14 ... 阅读全文
posted @ 2012-07-29 12:56 何小盒 阅读(208) 评论(0) 推荐(0) 编辑
摘要: javascript中创建的对象的方式:1.funtion People(){this.name = "";this.show = function(){};//分号必须加}var p = new People();p.name;p.show();/----------------------------/2.function People(){var p = new Object();p.name;p.show = function(){};//分号必须加return p;}p.name;p.show();/-----此种方法不推荐使用--------------/3.f 阅读全文
posted @ 2012-07-29 12:53 何小盒 阅读(142) 评论(0) 推荐(0) 编辑