摘要: 说明:代码来自网络。注释为笔者学习时添加。 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>点击DIV,显示其innerHTML</title> <style> body{ font:12px/1.5 Tahoma; /*行 阅读全文
posted @ 2017-02-23 22:41 sx00xs 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 说明:代码来自网络。注释为笔者学习时添加。 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>弹出层效果</title> <style> html,body{ height:100%; overflow:hidden; } b 阅读全文
posted @ 2017-02-23 22:39 sx00xs 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 说明:代码来自网络。注释为笔者学习时添加。 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>单一按钮显示隐藏</title> <style> body,div,ul,li,h2{ margin:0; padding:0; } 阅读全文
posted @ 2017-02-23 22:38 sx00xs 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 说明:代码来自网络。注释为笔者学习时添加。 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>百度输入法</title> <style> body,ul,li,button{ /*去掉内外边距*/ margin:0; padd 阅读全文
posted @ 2017-02-23 22:37 sx00xs 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 群里一朋友发出来的,注释是笔者根据自己的理解添加的 阅读全文
posted @ 2017-02-22 13:30 sx00xs 阅读(10717) 评论(0) 推荐(0) 编辑
摘要: 说明:代码取自网络,注释为笔者学习时根据自己的理解所添加 又及:原作者采用了匈牙利变量命名法,如变量为对象,则前缀字母 o,表示为 object。 阅读全文
posted @ 2017-02-22 03:47 sx00xs 阅读(2162) 评论(0) 推荐(0) 编辑
摘要: 说明:代码取自网络,内中注释为笔者学习中所添加,反映笔者学习时的理解! 又及:代码中的变量命名,均为匈牙利命名法,如果变量为对象,则变量名首字母为 o ,意为 object(对象)。 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <ti 阅读全文
posted @ 2017-02-22 03:07 sx00xs 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 说明:代码取自网络,注释为笔者学习所根据自己的理解所添加! <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>更换网页背景颜色</title> <style> body,ul,li{ /*将body,ul,li的外边距和内边距 阅读全文
posted @ 2017-02-22 02:11 sx00xs 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 说明:代码是网上找的,注释由笔者添加! 阅读全文
posted @ 2017-02-22 00:15 sx00xs 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: 1 直接设置元素的 style 属性: 2 使用 setAttribute()方法创建整个CSS样式规则: 3 预定义一个class 类样式规则,给元素添加类属性 阅读全文
posted @ 2017-02-21 03:06 sx00xs 阅读(9930) 评论(0) 推荐(0) 编辑