In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Define
The mathematical expression calc () is an abbreviation for calculate calculation. It allows the use of +, -, * and / operators, and can be calculated in a mixture of%, px, em, rem and other units.
Compatibility: IE8-, safari5.1-, ios5.1-, android4.3- are not supported, and android4.4-4.4.4 only supports addition and subtraction. IE9 is not supported for backround-position
[note] there must be spaces on both sides of the + and-operators
The operations in .test1 {border: calc (1px+1px) solid black; / * calc follow the order of *, / precedence over +,-/ width: calc (100% pink; font-style 3-2*1em-2*1px); background-color: pink; font-style: toggle (italic, normal);} .test2 {/ * because there is no space on the left and right sides of the operator +, it fails * / border: calc (1px+1px) solid black / * for attribute values that cannot be less than 0, if the result is less than 0, press 0 to process * / width: calc (10px-20px); padding-left: 10px; background-color: lightblue;}
Test text one test text two applications
The mathematical expression calc () is often used for numeric operations of different units in layout.
P {margin: 0;} .parent {overflow: hidden;zoom: 1;} .left {float: left;width: 100px; Margaret right: 20px;} .right {float: left;width: calc (100%-120px);}
Left
Right
Right
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.