Home >Web Front-end >HTML Tutorial >Bottleneck_html/css_WEB-ITnose
I like Zhang Xinxu’s blog very much. I have been reading it for a long time. Recently, my state has been a bit wrong, so I went back to read his blog about bottlenecks in CSS learning.
Let me talk about my personal experience first. The most basic elements of the front end are html, css and js. My personal understanding is that html is the skeleton, css is the clothes, and js is the action. So writing a good html structure is the most basic. Getting started with css is also very easy
When I first started working on the front-end, I felt that every day was new and I was exposed to new knowledge every day. Later, every month was new. I looked at some effects and frameworks written by others and used them myself. Now I feel a little impetuous, and I can't learn new things as quickly as before.
Back to Dada’s blog, my current situation is probably the bottleneck 1 mentioned by Dada. . . This article is really worth reading. I haven’t written anything for a long time, so my ability to express myself is no longer good. Now I am working hard on blogging.
Back to business, now let’s answer a few questions that were raised:
dl {display: block;-webkit-margin-before: 1em;-webkit-margin-after: 1em;-webkit-margin-start: 0px;-webkit-margin-end: 0px;}dt {display: block;}dd {display: block;-webkit-margin-start: 40px;}
This is a demo I wrote and copied and pasted in Chrome. In fact, dt is not worth the default margin. I really haven’t paid attention to these things, which is shameful. . .
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> div{ font-size:16px;line-height: 150%;} p{ font-size: 30px; } </style></head><body> <div> <p>啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦</p> </div></body></html>
You can change the line-height of the demo above to see the effect
A trace of the floating things we cleared together in those years
p.s. This seems to be something from last week or the week before last. I wrote half of it but didn’t finish it, and then put it aside. Let me post it first. There is also "Why does the performance of vertical-align differ under IE7, IE8, and IE9? What is the rendering mechanism?" This question has not been written, and will be added next time.