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 important, if an absolutely positioned element with text is placed on a text element, it will be very confusing. Then we can set a background image or background color to cover it, if necessary, you can set it to transparent " (transparent)
General settings for Transparent Elements CSS as follows:
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:
Element. style. fontfamily="Sans-Serif ";
Element. style. borderleftwidth="5px ";
Element. style. zindex= 100;
3 Note:
Code VaR Padding_left = 50 ;
Element. style. Left = Padding_left + "PX "; // Do not forget to add units
VaR Topmargin = 10 , Rigntmargin = 11 , Bottommargin = 12 , Leftmargin = 13 ;
Element. style. Margin = Topmargin + "PX" + Rigntmargin + "PX" + Bottommargin + "PX" + Leftmargin + "PX ";
4. Set float
Element.style.css float = "Left "; // Firefox Chrome Opera
Element. style. stylefloat = "Left "; // IE