zoukankan      html  css  js  c++  java
  • 百词斩前端面经(待整理)

    作者:八月好运来
    链接:https://www.nowcoder.com/discuss/176638
    来源:牛客网
    自我介绍position值介绍

        • position取值有四种,分别为static、fixed、absolute、relative、sticky(粘性布局)
        • static是html元素定位默认值,即:没有定位,元素出现在正常的文档流中,元素的bottom/top/left/right起不了作用
        • fixed是相对于浏览器窗口位置固定,浮于文档流之上
        • absolute是针对它的上一级元素进行定位,若其上级元素没有定位的定义,则以html元素的定位为基准?
        • relative是针对自己初始的位置进行定位
      • 盒模型介绍
      • 兄弟节点的margin重叠怎么解决

        • 设置外层元素 overflow:hidden
        • 设置内层元素  absolute定位
        • 设置内层元素透明边框 border:transparent
      • 三栏布局方法
      • float+margin-left
        • float + BFC
      • cookie、localStorage、sessionStorage区别

      • 你常用的排序算法

      • 数组去重,除了用Set还有什么方法

      • instanceof是怎么比较出来的

        • 考察隐藏原型(proto)/显示原型(prototype)
      • 遍历对象有哪些方法
      • 怎么冻结一个对象

      • vue的路由原理

      • fetch和ajax有哪些不同

      • fetch怎么做添加超时时间

  • 相关阅读:
    C# Enum设计和使用的相关技巧
    Bat文件编写
    js cookie操作
    Android use custom html tag in TextView
    Charset , Encoding
    Android View (transship)
    Android About ContentProvider
    android,create text file in sdcard
    Eclipse Shortcuts
    Common Terminology
  • 原文地址:https://www.cnblogs.com/GinaHan/p/11409003.html
Copyright © 2011-2022 走看看