In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you the example analysis of the code in Css, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Text-rendering: optimizeLegibility tells browsers how to render text, it is not a standard for CSS3, and different browsers have different rendering defaults. Strictly speaking, text-rendering does not fully guarantee that text will be rendered the way you want it to be on the user's browser.
Only block-level elements can be float, display:block, which automatically accounts for 100% of the width by default.
Header header section
Height: 100vh; it means 100% viewport height
Background-size: cover; background images cover the entire area, such as a div and a section
Background-position: center; background image is centered
How big is the big background picture? Width between 2700px-3000px and height between 1500px-2000px
Transform, used to manipulate elements, tilt skewing, rotate rotating, move translating, scale scaling. For example, transform: translate (- 50% jurisdiction 50%); move 50% of the width of the element to the left and 50% of the height of the element up
When you give an element an absolute location, the usual routine is: position:absolute;width:1000px;top:50%;left:50%
Add a layer of color to the background image, such as gradient: background-image: linear-gradient (rgba (0,0,0,0.7), rgba (0,0,0,0.7), url (img/h.jpg)
The relativity of font size and font thickness. When the font becomes larger, lower the value of font-weight accordingly.
Letter spacing letter-spacing
Word spacing word-spacing
Link a to several states: .classname: link, .classname: visited, .classname: hover, .classname: active
Transition, which gives the transition effect of element state change
Nav navigation bar
Picture zoom: you can make one value of width and height fixed, and another value set to auto, such as height:100px;width:auto
: after, append content to the element
Display: block, another line, default width 100%
Figure, html5 element tag, which represents a content unit containing diagrams, pictures, displays, code snippets, etc., which can be removed without affecting the entire page element.
Set opacity, opacity: 0.7; Note: this background color is related
The first someclass; of .someclassname:first-child, the last someclass of someclassname:last-child, or .someclassname: last-of-type
Background-attachment: the fixed; background image does not move with the rest of the page; the default value, scroll, means that the background image will move as the rest of the page scrolls
Blockquote is used with cite tags
The above is all the content of the article "sample Analysis of Code in Css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.