2020年4月22日

网页head

摘要: pc网页<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>网站名称</title> <meta name="keywords" content="网页关键字"> <meta name="description" content=" 阅读全文

posted @ 2020-04-22 09:38 木亻昜夋 阅读(60) 评论(0) 推荐(0)

命名

摘要: css文件命名主要的 master.css 模块 module.css 基本共用 base.css 布局、版面 layout.css 主题 themes.css 专栏 columns.css 文字 font.css 表单 forms.css 补丁 mend.css 打印 print.css clas 阅读全文

posted @ 2020-04-22 09:37 木亻昜夋 阅读(102) 评论(0) 推荐(0)

seo

摘要: 结构布局优化1、控制首页链接数量 2、扁平化目录层次 3、导航seo(链接优先文字后图片) 4、分页(首页 1 2 3 4 5 6 7 8 9 10 下拉列表) 5、加载速度 代码优化1、<tltle> 2、<meta keywords=""> 3、<meta description=""> 4、语 阅读全文

posted @ 2020-04-22 09:36 木亻昜夋 阅读(75) 评论(0) 推荐(0)

css对齐

摘要: 水平对齐行内1、父元素text-align:center; 块级1、父元素width: margin:0 auto; 2、父元素text-align:center; 本元素display:inline-block; 3、父元素display:table; margin:0 auto; 4、父元素di 阅读全文

posted @ 2020-04-22 09:35 木亻昜夋 阅读(69) 评论(0) 推荐(0)

兼容性

摘要: if IE <!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--> <!--[if IE]> 所有的IE可识别 <![endif]--> <!--[if IE 8]> 仅IE8可识别 <![endif]--> <!--[if lt IE 8]> IE8以及IE8以下 阅读全文

posted @ 2020-04-22 09:34 木亻昜夋 阅读(43) 评论(0) 推荐(0)

jQuery

摘要: jQuery基础$("css选择器");选中元素 $(element)$(document)$(window)$(this) $(HTML文本字符串) $(function(){});$(document).ready(function(){});页面加载完成时(优先DOMContentLoaded 阅读全文

posted @ 2020-04-22 09:33 木亻昜夋 阅读(43) 评论(0) 推荐(0)

javascript

摘要: 基础区分大小写注释//一行注释 /*几行注释*/ 严格模式"use strict" 标识符首字符为字母、下划线、美元符,后续字符为字母、下划线、美元符、数字。 保留字保留的关键字,不能做标识符。 直接量(值)数字、布尔值、字符串、null、undefined 变量var name 数据类型Numbe 阅读全文

posted @ 2020-04-22 09:32 木亻昜夋 阅读(71) 评论(0) 推荐(0)

css

摘要: display、visibility、opacity、z-index、overflow、position、top、bottom、left、right、float、clear width、height、padding、border(wsc)、margin line-height、vertical-al 阅读全文

posted @ 2020-04-22 09:31 木亻昜夋 阅读(50) 评论(0) 推荐(0)

html

摘要: !DOCTYPE html文档类型声明 html、head、meta、title、link、style、body、script 块级(默认换行,可设置宽高):div(无语义块级元素)、p(段落)、 h1~h6(标题)、hr(分隔线)、blockquote(引用块)、ul(无序列表)、ol(有序列表) 阅读全文

posted @ 2020-04-22 09:30 木亻昜夋 阅读(51) 评论(0) 推荐(0)

导航