-
Notifications
You must be signed in to change notification settings - Fork 0
/
jQuery.html
47 lines (41 loc) · 1.08 KB
/
jQuery.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<head>
<title>jQuery
</title><script src="https://code.jquery.com/jquery-3.4.0.min.js"></script>
</head>
<style>
body{
font-size:20px;
font-family:arial;
background: lightblue;
}
header{
text-align:center;
padding:20px;
background:black;
color:white;
}
#container{
padding:20px;
}
</style>
<body>
<header>
<h1>jQuery test</h1> </header>
<div id = "container">
<h1 class ='head'>adioja1iosdaodsios</h1>
<ul id='list'>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
</ul>
</div>
<script>
$('.head').hide();
$('ul#list li:first').css('color', 'red');
$('ul#list li:last').css('color', 'green')
$('ul#list li:odd').css('color', 'blue')
</script>
</body>
</html>