摘要: 运算符 算数(+ - * / % ++ --) n++:先运算 后加1 赋值 ++n:先加1赋值 后运算 var str=’ab’ + ’cd’; → ’abcd’ 1 + ’ab’ → ‘1ab’ ‘ab’+1 → ’ab1’ 1+1+’ab’ → ‘2ab’ ’ab’+1+1 → ‘ab11’ 阅读全文
posted @ 2018-09-20 15:01 博客张C 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 1.彩票36选7,不重复 2.十位评委打分,去掉最大值最小值取平均值 3.四个数加减乘除=24 阅读全文
posted @ 2018-09-20 14:34 博客张C 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 内联 <a href="#" onClick="alert('清除成功')">清除垃圾</a> 内嵌 (放在html文件里面) <script type="text/javascript"> alert("我也是弹窗"); </script> 外部引用 (放在html文件里面) <script ty 阅读全文
posted @ 2018-09-20 14:25 博客张C 阅读(760) 评论(0) 推荐(0) 编辑
摘要: 1.输入一个数,求这个数以内的奇数和 2.水仙花数153=1^3+5^3+3^3 3.猜拳游戏 4.百鸡百钱(公鸡两文钱,母鸡一文钱,小鸡半文钱,100文钱买100只鸡) 5.一张纸0.0001米,对折多少次能达到8848 6.九九乘法表 7.100以内有7的数字 8.*三角形 ********** 阅读全文
posted @ 2018-09-17 17:55 博客张C 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 1.渐变线性渐变background: linear-gradient(red, blue); 默认从上到下 可多个颜色background: linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1)); 到右 透明色渐变backgroun 阅读全文
posted @ 2018-09-12 11:21 博客张C 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 1.盒子 边框 border-top-width: 10px; 宽度 border-top-style: solid/dashed/dotted; 实线 虚线 点线 border-top-color: red; 颜色 border-top: 10px solid red; 宽 线 色 阅读全文
posted @ 2018-09-12 10:19 博客张C 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 1.宽高 width:100px; 宽height:100px; 高 2.背景 background-color: #fff; 背景色 background-image: url(./img.jpg); 背景图(默认平铺) background-repeat: repeat-x/no-repeat; 阅读全文
posted @ 2018-09-11 11:51 博客张C 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.样式: 1.1内联式(行内) <div style="color:red";></div> 1.2内嵌式(写在<head>内) <style> div{color:red;} </style> 1.3外链式(写在.css文件内,加载引用)在head内写 <link rel="stylesheet 阅读全文
posted @ 2018-09-07 16:46 博客张C 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1.表格基本属性 <table>:表格 width:宽度 border:边界 cellpadding:格内距 cellspacing:格间距 <caption>:表格标题 align="top/bottom" <tr>:表格中的一行 height:行高 align="left/center/righ 阅读全文
posted @ 2018-09-05 17:01 博客张C 阅读(164) 评论(0) 推荐(0) 编辑
摘要: <p></p>标签(一般成对) DW常用快捷键 <html>:网页 里面有<head>和<body> <head>:头部 里面有<title>和编码格式 <title>:文档标题 <body>:身体 一般写代码写在<body>...</body>内 <h1>:标题 字体比较大 <p>:段落 有段间距 阅读全文
posted @ 2018-09-04 16:37 博客张C 阅读(129) 评论(0) 推荐(0) 编辑