bootstrap-day03
选择器
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <meta http-equiv="X-UA-Compatible" content="ie=edge"> 7 <title>Document</title> 8 <style> 9 [class^="icon-"],[class*=" icon-"]{ 10 width: 100px; 11 height: 100px; 12 background-color: blue; 13 } 14 </style> 15 </head> 16 <body> 17 <div class="icon-one">11111</div> 18 <div>22222</div> 19 <div class="test icon-thr">33333</div> 20 <div>44444</div> 21 <div>55555</div> 22 </body> 23 </html>