2017年6月13日

javascript的语法

摘要: 1.顺序语句 if(a>10){ alert("A的值大于10"); } 2.分支语句 if...else if(a>10) { alert("A的值大于10"); } else { alert("A的值不大于10"); } 循环语句 1.for循环 四要素:初始值 循环条件 状态改变 循环体 wh 阅读全文

posted @ 2017-06-13 21:43 qdljyl 阅读(73) 评论(0) 推荐(0) 编辑

2017年6月12日

javascript

摘要: 一、JS的注释语法分有单行注释和多行注释两种: 单行注释://后一行的内容会被注释 多行注释:/* 中间的内容会被注释 */ HTML:<!-- 中间的内容被注释 --> css:/* 中间的内容被注释 */ 二、数据类型 int 整数 float 单精度小数 double 双精度小数 decima 阅读全文

posted @ 2017-06-12 19:51 qdljyl 阅读(65) 评论(0) 推荐(0) 编辑

2017年6月10日

css样式表2

摘要: 1. :hover 鼠标一上执行哪些样式 2.cursor:pointer 鼠标的光标变为手 3.display:none表示隐藏,display:block表示显示 4.visibility:hidden隐藏,visibility:visible显示隐藏占位置 5.overflow:hidden超 阅读全文

posted @ 2017-06-10 20:25 qdljyl 阅读(87) 评论(0) 推荐(0) 编辑

css样式表

摘要: 一、样式表的分类 1.内联样式表 2.内嵌样式表 3.外部样式表 二、样式属性 1.样式表的背景 background-color :背景颜色 background-image:背景图片 background-position:center:背景居中 2.字体 font-family:字体样式 fo 阅读全文

posted @ 2017-06-10 20:23 qdljyl 阅读(100) 评论(0) 推荐(0) 编辑

2016年12月16日

js实例8日期的选择

摘要: <body> <select id="nian" onclick="biantian()"></select>年<select id="yue" onclick="biantian()"></select>月<select id="tian"></select>日 <script type="tex 阅读全文

posted @ 2016-12-16 21:24 qdljyl 阅读(122) 评论(0) 推荐(0) 编辑

js实例7表框选项

摘要: <style type="text/css">*{ margin:0px auto; padding:0px}#wai{ width:500px; height:500px}#left{ width:200px; height:500px; float:left}#zhong{ width:100p 阅读全文

posted @ 2016-12-16 21:19 qdljyl 阅读(114) 评论(0) 推荐(0) 编辑

js实例6滑动按钮

摘要: <style type="text/css">*{ margin:0px auto; padding:0px}#wai{ width:100%; height:500px;}#left{height:500px; background-color:#63C; float:left}#right{ h 阅读全文

posted @ 2016-12-16 20:39 qdljyl 阅读(327) 评论(0) 推荐(0) 编辑

js实例5进度条

摘要: <style type="text/css">*{ margin:0px auto; padding:0px}#kuang{ width:200px; height:10px; border:1px solid #60F;}#jindu{ height:10px; background-color: 阅读全文

posted @ 2016-12-16 20:34 qdljyl 阅读(163) 评论(0) 推荐(0) 编辑

js实例4下拉菜单

摘要: <style type="text/css">*{ margin:0px auto; padding:0px}#fenlei{ width:500px; height:35px;}.xiang{ float:left; width:100px; height:35px; text-align:cen 阅读全文

posted @ 2016-12-16 20:31 qdljyl 阅读(102) 评论(0) 推荐(0) 编辑

js实例3下拉列表

摘要: <style type="text/css">*{ margin:0px auto; padding:0px}#xiala{ width:200px; height:40px; border:1px solid #999;text-align:center; line-height:40px; ve 阅读全文

posted @ 2016-12-16 20:17 qdljyl 阅读(109) 评论(0) 推荐(0) 编辑

导航