摘要: 星期几的4种JS代码写法,有需要的朋友可以参考一下 第一种写法 代码如下: var str = ""; var week = new Date().getDay(); if (week == 0) { str = "今天是星期日"; } else if (week == 1) { str = "今天 阅读全文
posted @ 2018-12-20 20:08 Yokemadman 阅读(5174) 评论(0) 推荐(0) 编辑
摘要: JavScript在页面上显示时间,首先我们先来了解关于时间的一些简单方法: getFullYear() 获取当前年份,getMonth() 0-n(一月到十二月),getDate() 1-31(月份中的天数),getHours() 0-23(小时),getMinntes() 0-59(分钟),ge 阅读全文
posted @ 2018-12-20 19:59 Yokemadman 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1. JavaScript概述 JavaScript 是世界上最流行的编程语言。这门语言可用于 HTML 和 web,更可广泛用于服务器、PC、笔记本电脑、平板电脑和智能手机等设备。 JavaScript是一种面向对象的,动态的脚本语言,主要被作为客户端脚本语言在用户的浏览器上运行,不需要编译即可运 阅读全文
posted @ 2018-12-11 20:28 Yokemadman 阅读(257) 评论(0) 推荐(0) 编辑
摘要: --css列表 导航条、文章列表使用 list-style 一条声明设置所有属性 list-style-image 图像设置为列表项标记 list-style-position 标记的放置位 list-style-type 列表项标记的类型 list-style 一条声明设置所有属性 list-st 阅读全文
posted @ 2018-12-10 18:01 Yokemadman 阅读(100) 评论(0) 推荐(0) 编辑
摘要: --css文本 文本外观、颜色、间距、对齐 >text-decoration 用来去掉元素下滑线 值 none 没有下划线 underline 底下下滑线 overline 顶部下滑线 line-throgh 中间下滑线 inherit 继承父元素 >text-align 水平对齐 值 left r 阅读全文
posted @ 2018-12-09 20:35 Yokemadman 阅读(89) 评论(0) 推荐(0) 编辑
摘要: css层叠样式表 1、元素内嵌样式表 <p style=" color:red;font-size:50px;">.....<p> 2、外部样式表 是一个.css文件,需要在页面引用样式表才能使外部样式表的设置生效。 ><link>元素应用,一般写在<head>元素内部。 <html> <head> 阅读全文
posted @ 2018-12-08 11:20 Yokemadman 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 概念介绍: 1、px (pixel,像素): 是一个虚拟长度单位,是计算机系统的数字化图像长度单位,如果px要换算成物理长度,需要指定精度DPI(Dots Per Inch,每英寸像素数),在扫描打印时一般都有DPI可选。Windows系统默认是96dpi,Apple系统默认是72dpi。 2、em 阅读全文
posted @ 2018-12-07 11:55 Yokemadman 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 表单元素: <input>标签 搜集用户信息 属性:type=" " <form>标签 用户输入的手段 先服务器传输数据 属性:action=“ ” 向何处发送表单数据 url method 发送form-data的http方法 get/post aceept-charset 服务器可处理的表单数据 阅读全文
posted @ 2018-12-07 11:52 Yokemadman 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 文字标签: <ul><li>有序列表: <ul>无序列表 <li> 列表中的项 属性:type= " " disc (实心小圆点) square (实心正方形) circle (实心小圆点) <ol><li>无序列表: 属性:type =" " 用于排序的5个值: 数字排序 1 字母排序 a A 罗 阅读全文
posted @ 2018-12-06 17:16 Yokemadman 阅读(160) 评论(0) 推荐(0) 编辑
摘要: -标题:标题是通过<h1>-<h6>等标签进行定义 <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> <h4>This is a heading</h4> <h5>This is a he 阅读全文
posted @ 2018-12-05 21:11 Yokemadman 阅读(161) 评论(1) 推荐(1) 编辑