esercizi su css
This commit is contained in:
54
css24.html
Normal file
54
css24.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<meta name="author" content="xgiovio"/>
|
||||
<meta name="description" content="A simple test page"/>
|
||||
<meta name="keywords" content="Ormai google non se le fila piu"/>
|
||||
<meta name ="robots" content="index"/>
|
||||
<meta charset="utf-8"/>
|
||||
<!-- <link rel="stylesheet" href="css18.css" type="text/css" /> -->
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
#qwerty tr:nth-of-type(even){
|
||||
|
||||
background-color: green;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#qwerty tr:nth-of-type(odd){
|
||||
|
||||
background-color: black;
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
#qwerty tr:nth-of-type(1){
|
||||
|
||||
background-color: red;
|
||||
color: green;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table id="qwerty">
|
||||
|
||||
<tr><td>asdsda</td></tr>
|
||||
<tr><td>asdsda</td></tr>
|
||||
<tr><td>asdsda</td></tr>
|
||||
<tr><td>asdsda</td></tr>
|
||||
<tr><td>asdsda</td></tr>
|
||||
<tr><td>asdsda</td></tr>
|
||||
<tr><td>asdsda</td></tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user