1. Transparency:
If you do not specify a background color or a background image for a text, the background of this element is usually transparent.
This is very important. If an absolutely positioned element with text is placed on a text element, it will be very confusing, then we can set the background image or background color to cover it. If necessary, we can set it to "Transparent" (transparent)
General settings Transparent Elements General CSS is as follows:
CopyCode Code: opacity:. 75; // FF new
-Moz-opacity:. 75; // transparency for older extends illas
Filter: alpha (opacity = 75); // for IE
2. CSS with a hyphen:
Camel naming:Copy codeThe Code is as follows: element. style. fontfamily = "Sans-serif ";
Element. style. borderleftwidth = "5px ";
Element. style. zindex = 100;
3. Notes: Copy codeCode: var padding_left = 50;
Element. style. Left = padding_left + "PX"; // do not forget to add Unit
VaR topmargin = 10, rigntmargin = 11, bottommargin = 12, leftmargin = 13;
Element. style. Margin = topmargin + "PX" + rigntmargin + "PX" + bottommargin + "PX" + leftmargin + "PX ";
4. Set float Copy codeCode: element.style.css float = "Left"; // Firefox Chrome Opera
Element. style. stylefloat = "Left"; // IE