In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.