GithubHelp home page GithubHelp logo

web-interview-question's Introduction

web前端面试题

1.行内元素和块级元素

行内元素:
1.可以在排列在同一行。
2.设置宽高和内外边距对它都没有效果。
常见:img、span、a、input、select。em、i、small....

块级元素:
1.总是排列在新行,独占一行。
2.块级元素可以包含行内元素和块级元素。
常见:div、p、h1-6、ul、li、ol、table、tbody、tr、td、form...

转换:display:block

2.列举不同的清除浮动的技巧,并指出它们各自适用的使用场景

1.clear:both;//添加新元素

2.overflow:hidden;//加在父级元素上

3.:after方法和:before方法.//作用于浮动元素的父级

web-interview-question's People

Contributors

pandaseven avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.