Proprietatea opacity
seteaza nivelul de opacitate al unui element HTML, opacity permite modificarea transparentei elementului.
opacity: X;- X - reprezinta o valoare intre 0 (complet transparent) si 1 (fara transparenta).
<style> #dv { background-color:#8899fe; width:200px; height:100px; opacity:0.4; } </style> <div id="dv">Un continut oarecare ...</div>
<style> #im { opacity:0.5; } </style> <img src="css/html_course.jpg" alt="Curs HTML si CSS" width="155" height="160" id="im" />
<style> #im2 { opacity:0.5; } #im2:hover { opacity:1; } </style> <img src="css/html_course.jpg" alt="Curs HTML si CSS" width="155" height="160" id="im2" />
<style> #trans { display:none; position:absolute; top:2%; left:2%; width:96%; height:95%; background-color:#07fe08; opacity:0.5; } #cnt { position:relative; background:#e7e8fe; width:300px; height:200px; border:1px solid blue; padding:20px; } #cnt:hover #trans { display:block; } </style> <div id="cnt"> <div id="trans"></div> Plasati mouse-ul peste aceasta caseta pentru a vedea efectul de opacitate. <img src="css/css3.jpg" alt="CSS3 opacity" width="160" height="98" /> </div>
<ul> <li>http://coursesweb.net/html/</li> <li>http://www.marplo.net/html/</li> </ul>
.some_class { display: list-item; }
var obj = { "courses": ["php", "javascript", "ajax"] }; var jsonstr = JSON.stringify(obj); alert(jsonstr); // {"courses":["php","javascript","ajax"]}
$strhtml = '<body><div id="dv1">CoursesWeb.net</div></body>'; $dochtml = new DOMDocument(); $dochtml->loadHTML($strhtml); $elm = $dochtml->getElementById("dv1"); echo $elm->nodeValue; // CoursesWeb.net
I`m living here. - Traiesc /Locuiesc aici.
Estoy viviendo aquĆ. - Traiesc /Locuiesc aici.