Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2018-8-16 js基础复习3 #5

Open
hello-tsai opened this issue Aug 16, 2019 · 6 comments
Open

2018-8-16 js基础复习3 #5

hello-tsai opened this issue Aug 16, 2019 · 6 comments

Comments

@hello-tsai
Copy link
Owner

与数值有关的全局方法
parseint(要转化的内容,进制) 转为整数(只能是十进制数,或者NaN)
字符串转为整数的时候,是一个字符依次转换,如果遇到不能转换的字符,就不再进行下去,直接返回已经转好的部分
例如:parseInt(8asddsa1112)//8
parseFloat("")//0
Number("")//NaN
isNaN:判断一个数是否是。。
isFinite()//是不是一个正常的数值,返回布尔值
例如:isFinite(Infinity)//false
isFinite(NaN)//false
isFinite(null)/true
...

@hello-tsai
Copy link
Owner Author

什么是函数式编程?

@hello-tsai
Copy link
Owner Author

HTML5 标签
header footer article aside
canvas video audio

H5是什么?
移动端页面

@hello-tsai
Copy link
Owner Author

css两种盒模型
标准盒模型和IE盒模型 宽度指的是内容是标准盒模型,宽度包括padding和border的是IE盒模型,一般用IE盒模型更好
css设置:box-sizing:border-box(IE盒模型)
box-sizing:content-box(标准盒模型)
如何垂直居中?
行内元素:line-hight 为高
定宽元素:margin :0 auto
外面包裹table td会自动居中
display:flex
align-item:center

BFC是什么 (块级格式化上下文)
BFC的作用是
1.自适应两栏布局
2.可以阻止浮动元素被覆盖
3.包含浮动元素-清楚内部浮动:原理是子元素即便是float也会参与块级运算
4.分属不同BFC时,可以防止margin重叠

css页面布局
三栏布局,左右300px 中间自适应
1.浮动
2.绝对定位
3.flex
4.table
5.网格布局(grid)

1.左右ding kuan

@hello-tsai
Copy link
Owner Author

CSS选择器的优先级
1.越复杂的优先级越高
2.写在后面的会覆盖前面的
3.important! 优先级最高,少用

@hello-tsai
Copy link
Owner Author

清除浮动的代码
.clear{
content:'';
display:block;
clear:both;
}

1 similar comment
@hello-tsai
Copy link
Owner Author

清除浮动的代码
.clear{
content:'';
display:block;
clear:both;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant