Use the calc in css3

Recently encountered a problem when the layout, the left side of the page is a sidebar on the right is the content area, content area has a fixed positioning tab, set the time fixed positioning of the label set the width should be content width of the region, and thus fixedly positioned relative to the time width of the window, the window transition width to the width of the current minus the left sidebar

Internet search of the investigation began to have a calc attribute can be written expression, but when their own use, but to no avail himself tested for a long time only to find that the wording of the error

width: calc(100% - 10px); 

In writing about the time required operators are adding space to take effect

Guess you like

Origin www.cnblogs.com/wyongz/p/11269173.html