• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
暗Kris
博客园    首页    新随笔    联系   管理    订阅  订阅

总结标签

HTML单词

文档声明

!DICTYPE html

本档开始和结束

html /html

字符编辑

UTF-8

头部标签

head

元信息 关于文档的一些信息

meta

文档标题

title

串联 链接

link

身体标签

bidy

大标题到小标题

h1到h6

锚点 锚链接

a

段落

p

字体加粗

b

字体斜体

i

强调

em

盒子标签

div

按钮

button

下划线

u

注释

ctrl+/

类名

class

表格

table tbody tr th td

行内元素

span

链接js

script

弹窗

<a href="javascript:alert('又百度一下')" onclick="alert('百度一下')">百度一下</a>

<a class="google" href="#">Google一下</a>

其他盒子标签

ul li

放图片

img

表单

input textarea

li 鼠标小手指针样式

cursor:pointer

hover当鼠标移入

css单词

通配符

*

外边距

margin

内填充

padding

宽

width

高

height

行高

line-height

背景图

background:url

背景颜色

background-color

字体颜色

color

左浮动

float:left

右浮动

float:right

清楚浮动

clearfix

字体粗细

font-weight

字体大小

font-size

单位

px

绝对定位

position:absolute

相对定位

position:relative

固定定位

position:fixed

轮廓线

outline

边框线

border-right

上

top

右

right

下

bottom

左

left

圆角边

border-radius

水平线

hr

透明

transparent

实线

solid

清除下划线

text-emphasis

转换块级元素

display:block

文字水平居中

text-align: center

清除

none

盒子中间

margin: 0 auto

选择

:nth-child

溢出,隐藏

overflow: hidden
animation:?s

循环转动

infinite
@keyframes

角度,度数单位

deg

Y轴翻转

skewy

X斜体

skewx

盒子阴影

box-shadow
blur-radius
blur-radius
spread-radius
spread-radius

字体转换为大写

text-transform: uppercase;

字体转换为小写

text-transform: lowercase

隐藏

display: none

出现

display: block
box-sizing: border-box

js单词

弹出框

alert

控制台打印

console.log

内容输入到界面

document.write

接收用户输入的内容

var message=prompt
var 变量名称=变量赋值

未定义

undefined:

数值型(数字类型)

Number(转换成数字类型) NaN(特殊这不是数字) (没有"")

字符串

String length(长度) "" ''

布尔类型

Boolean trus/false(真假)

空类型

Null

转换成数字类型二

parseInt parseFloat(小数类型)

初始化时

var

如果

if

否则

else

函数

function

defined

获取元素

document.getElementById

获取父节点

parentNode

获取子节点

childNodes

获取节点名字:多个子元素需要通过for循环遍历后获取到每个节点名

nodeName

判断是否有子节点

元素.hasChildName

得到 元素 通过 标签 名字

get element by tag name

&实体字符单词

空 格

&nbsp

√

&radic

©

&copy

>

&gt

≷

&gl

<

&lt

路径

下找文件夹 回到下一级文件夹 回下一级路径

/

上找文件夹 回到上一级文件夹 回上一级路径

../

颜色

白色

#fff #ffffff

黑色

#111 #111111

红色

red
posted @ 2021-12-24 10:51  暗Kris  阅读(31)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3