How to use the flex-shrink attribute in css
Editor to share with you how to use the flex-shrink attribute in css, I believe 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!
1. Flex-shrink refers to the shrinkage ratio of a single element when the flex container is out of space.
2. Negative values are not supported, and the default value is 1, which means that all flex subitems will shrink by default. If set to 0, it does not shrink and maintains the original width.
Example
/ / CSS section .content {display: flex; width: 400px; height: 200px; border: 1px solid;} .left, .center, .right {height: 200px;} .left {width: 100px; background-color: aqua;} .center {width: 200px; background-color: bisque;} .right {width: 300px; background-color: cadetblue } these are all the contents of the article "how to use the flex-shrink attribute 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!