会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
*!Walter!*
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2020年12月21日
08 switch语句
摘要: <!DOCTYPE html> <html> <head> <title></title> </head> <body> <script type="text/javascript"> var weather = 'sunny'; switch(weather){ case 'sunny': alt
阅读全文
posted @ 2020-12-21 10:06 *!Walter!*
阅读(52)
评论(0)
推荐(0)
2020年12月19日
07 逻辑运算符
摘要: <!DOCTYPE html> <html> <head> <title>逻辑运算符</title> </head> <body> <script type="text/javascript"> var weather = 'sunny'; var temp = 32; if (weather 's
阅读全文
posted @ 2020-12-19 21:19 *!Walter!*
阅读(53)
评论(0)
推荐(0)
06 比较运算符
摘要: <!DOCTYPE html> <html> <head> <title>比较运算符</title> </head> <body> <script type="text/javascript"> <!-- :比较数值和类型推荐使用 ==:只比较数值 !==:不等于数值和类型 !=:只比较数值 -->
阅读全文
posted @ 2020-12-19 21:11 *!Walter!*
阅读(74)
评论(0)
推荐(0)
05 if...else语句
摘要: <!DOCTYPE html> <html> <head> <title></title> </head> <body> <script type="text/javascript"> var distance = 10; var nowDistance = 5; if (nowDistance<d
阅读全文
posted @ 2020-12-19 21:03 *!Walter!*
阅读(97)
评论(0)
推荐(0)
04 Array
摘要: <!DOCTYPE html> <html> <head> <title>数组Array</title> </head> <body> <script type="text/javascript"> <!-- 创建 --> var shoping = ['香蕉','苹果','牛奶']; // ale
阅读全文
posted @ 2020-12-19 21:01 *!Walter!*
阅读(45)
评论(0)
推荐(0)
03 运算符
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>运算符-算数运算符</title> </head> <body> <script type="text/javascript"> var x = 10; var y = 4; //
阅读全文
posted @ 2020-12-19 20:56 *!Walter!*
阅读(89)
评论(0)
推荐(0)
02 变量
摘要: <!DOCTYPE html> <html> <head> <title>变量:可理解容器</title> </head> <body> <script type="text/javascript"> <!-- var声明:浏览器才能识别 --> // 变量初始化 var x = 30; // 声明
阅读全文
posted @ 2020-12-19 20:49 *!Walter!*
阅读(61)
评论(0)
推荐(0)
10 文本属性-下划线、缩进、行高、对齐
摘要: <!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> .box1{ /*下划线*/ text-decoration: underline; /*无下划线*/ text-decoration: none; /*上划线
阅读全文
posted @ 2020-12-19 20:47 *!Walter!*
阅读(326)
评论(0)
推荐(0)
09 字体属性-颜色斜体粗细
摘要: <!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> body{ /*颜色设置*/ /*rgb是red,green,blue三种颜色的意思,三种三色混合为白色*/ /*color: rgb(255,255,255)
阅读全文
posted @ 2020-12-19 17:41 *!Walter!*
阅读(153)
评论(0)
推荐(0)
08 字体属性设置-font-family
摘要: <!-- 字体属性设置取决与用户电脑是否安装此字体,window默认为微软雅黑 --> <!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> <!-- Arial为备选字体 --> body{ font-famil
阅读全文
posted @ 2020-12-19 17:35 *!Walter!*
阅读(120)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告