Discussion on non overflow and non deformation of flex layout sub elements
The problem is this: we are going to make a layout effect of the picture below When the window height is reduced, the red and blue boxes and the largest gray box are reduced accordingly, but the premise is that the red and blue boxes can not overflow to the outside of the gray box, and the contents can not be squeezed
The following is the neg ...
Added by Lautarox on Mon, 27 Dec 2021 21:55:07 +0200
Two column layout, classic bug, bfc,float
Two column layout
Renderings (right and left):
Write first on the right and then on the left; You can write left and then right. The first born element must be set to absolute positioning, and the next element can come up in a row. If the second born element is set to absolute positioning, even if it is separated from the original positio ...
Added by vladj on Mon, 27 Dec 2021 07:57:50 +0200
A brief introduction to flexible layout
Before learning elastic layout, we should first understand its concept. Flexible layout (flex) literally means flexible layout. Flexible layout is a very convenient layout in html. It allows the content in the structure to adapt to different resolutions and simplifies many cumbersome codes.
The syntax of flexible layout is divided into two typ ...
Added by -Karl- on Mon, 27 Dec 2021 04:36:54 +0200
Xuecheng online website knowledge sharing
Xuecheng online website knowledge sharing
Xuecheng online website is a relatively basic web page layout, which allows people who have just learned the front end to use tools to measure the size, cut pictures, use boxes to locate the layout, use floating to place floating boxes and other knowledge points. Major teaching websites will also use t ...
Added by juniorbisono on Sun, 26 Dec 2021 01:50:21 +0200
HTML+CSS common interview questions
★ if the width and height of parent and child elements are not fixed, how to achieve horizontal and vertical centering
- Elastic box model
-Parent element settings: display:flex; justify-content:center; align-items:center
-Additional action: set elastic box for parent element display:flex; Child elements can be set margin: auto; Achieve ve ...
Added by merlinti on Sat, 25 Dec 2021 08:01:38 +0200
SCSS--SCSS common attribute collection
Introduction to SCSS SCSS official documents
1. Common attribute collection
1.1 rule nesting
Scss allows a set of css styles to be nested into another set of styles. The inner style takes its outer selector as the parent selector, for example:
#main p {
color: #00ff00;
width: 97%;
.redbox {
background-color: #ff0000;
colo ...
Added by LuAn on Fri, 24 Dec 2021 13:38:58 +0200
The style priority of the third-party component library is scoped, and the action style penetrates the inline style
When we use the styles of third-party component libraries, we often need to modify the default styles of components according to our own needs.
When we use the third-party component library, the style of the component we write appears in the front, and the style of the plug-in (third-party component library) will come in from the back and ...
Added by habbardone on Thu, 23 Dec 2021 08:05:02 +0200
Javaa Development Backend Note - 0813 (HTML/CSS)
HTML: Hyper Text Markup Language
All tags can be nested, some have syntax requirements Most tags have a start tag and a end tag, and one of them has a separate tag because it only has a single function or there is nothing to decorate to end within the tag
Basic formatting of HTML
< head> </head>Header Label< body></ ...
Added by abalfazl on Thu, 23 Dec 2021 05:03:40 +0200
Implementation principle of scoped privatization style in vue
In vue, the original intention of scoped design is to make the style private so that it will not affect the style anywhere else.
Let's start with the principle of implementing module components. By looking at the DOM structure, it is found that vue ensures uniqueness by adding unique and non duplicate marks on the DOM structure and css style, ...
Added by sareejoh on Wed, 22 Dec 2021 21:05:17 +0200
How to break through browser 12px restrictions
At present, Chrome browser still does not release the 12px limit, but Chrome is still the browser with the largest number of users.When I was developing a project, I had a whim: what if I actually need 11px font size? This is not possible in Chrome. About fonts, I first thought of non PX units such as rem. However, REM is only for responsive ad ...
Added by excl209 on Wed, 22 Dec 2021 21:00:21 +0200