Giter VIP home page Giter VIP logo

learn-fron-end's People

Contributors

michaelhsuke avatar

Stargazers

 avatar

Watchers

 avatar  avatar

learn-fron-end's Issues

试着写博客系列(一)

大概18年开始,才正式全职做前端,到今天,大概有两年多时间了。

其实我从15年就开始接触前端了,当时一个师兄觉得我应该做前端,后来的个人发展轨迹表明,我并没有接受他的观点。

不知不觉年纪又大了,选定了前端,经验也不充足,我能做的是什么?

到了我这个年纪,按理说应该是技术专家了,可感觉自己这几年并没有多大的进步,我做的东西,可能在校的大学生也能完成。

惟有更加努力了。

console.log('hello world')

display: none; opacity: 0; visible: hidden; 三者比较

一、页面效果
display: none; // 不占据空间,不可点击
opacity: 0; // 占据空间,可点击
visible: hidden; // 占据空间,不可点击

二、对子元素的影响
display:none; 子元素都不可见;
opacity: 0; 子元素都不可见;
visible:hidden; 子元素设置为visible:visible,子元素依然可见。

三、性能
display:会引发重排,性能较差;
visible:会引发重绘,性能优于display;
opacity: 性能最高

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.