Front-end Knowledge Collection

This article is reproduced in: Ape 2048 Website ⇛ https://www.mk2048.com/blog/blog.php?id=hibj1h0j0j

Currently set themselves up as a team is writing an interview map, it will open in mid-July. Is rich in content, will be the first version of the open source front-end programmer and knowledge necessary knowledge, the latter will gradually be written back-end knowledge. Because the project involved too much content (already written a month and a half), and need to be translated into English, so time was needed. Interested students can Follow my Github get the fastest update message.

JS related

CSS-related

<style>
.parent{
	min-height: 300px;
    // height: 1px;
}
.child{
	height: 100%;
	background: red;
}
</style>

<div class="parent">
    <div class="child">1</div>
</div>

Demo Institute Add

How is the above childelements stays full parent element: The answer is to give parenta specific heightheight:1px

Performance-related

Image loading optimization

Three-pronged approach for

  • Pictures
    • Image Format webP
    • According to the screen size of the crop image size
  • Pictures loaded Related
    • First, load the first screen and then load another picture
    • Lazy loading
    • Preloading
  • Network-related

Interview Related

PWA-related

General computer knowledge

tool

We can focus on my public number, I'll update the video in the public numbers, and I think every night pushing a good article.


More professional front-end knowledge, make the [2048] ape www.mk2048.com

Guess you like

Origin www.cnblogs.com/jiangshangbulao/p/11773478.html