This repository has been archived by the owner on Mar 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathselect.html
68 lines (52 loc) · 1.84 KB
/
select.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Come personalizzare la freccia di una select :: Laboratorio CSS</title>
<link href='http://fonts.googleapis.com/css?family=Maven+Pro:400,700' rel='stylesheet' type='text/css' />
<link href="common/css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#content{width:200px; margin:0 auto;}
select{appearance:none !important; line-height:20px; width:150px; padding:5px; border:none; background:url(http://www.laboratoriocss.it/wp-content/uploads/demoArrowSelect.jpg) no-repeat right 30px center}
select:focus{outline:none;}
/* Questo trick non fa visualizzare la freccia su Chrome. */
select{
-webkit-appearance:none;
}
/* Questo trick non fa visualizzare la freccia su IE 10. */
select::-ms-expand {
display: none;
}
/* CSS condizionale per Firefox, soluzione compatibile con tutti i browser. */
@-moz-document url-prefix() {
#contentSelect{width:150px; overflow:hidden;}
select{width:120%; -moz-appearance:none;}
}
</style>
<!--[if IE]>
<style type="text/css">
#contentSelect{width:150px; overflow:hidden;}
select{width:120%;}
</style>
<![endif]-->
</head>
<body>
<a id="logo" href="http://www.laboratoriocss.it" title="Laboratorio CSS" class="logo"><img src="common/img/structure/logoLabcss.png" alt="Logo laboratorio CSS" /></a>
<div id="container">
<div id="header">
<h1>Come personalizzare la freccia di una select</h1>
<p id="description">Vi siete mai chiesti se è possibile personalizzare la freccia di una select senza ricorrere all'uso di jquery?</p>
</div>
<div id="content">
<div id="contentSelect">
<select>
<option>Lista</option>
<option>Lista</option>
<option>Lista</option>
<option>Lista</option>
</select>
</div>
</div>
</div>
</body>
</html>