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
| .dh{ background-color:blue; color:white; padding:10px; font-size:16px; border:none; cursor:pointer; } .cd{ position:relative; display:inline-block; } .xl{ display: none; position: absolute; min-width: 84px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); } .xl a{ background-color:#00FFFF; color: blue; padding: 12px 16px; text-decoration: none; display: block; } .xl a:hover{ background-color:white; color:red; } .cd:hover .xl{ display:block; color:red; } .cd:hover .dh{ background-color:#00FFFF; color:red; }
|