terça-feira, 25 de março de 2014

Usando comando Selection - CSS

Faz o seguinte comoando no CSS.

<!DOCTYPE html>
<html>
<head>
<style>
:selection {color:red;background:yellow;}
</style>
</head>
<body>

<h1>Tente selecionar algum texto nesta página </h1>

<p>Este é um parágrafo. </p>

<div>Este é um texto em um elemento div.</div>

</body>
</html>