运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <head> <title>Font Awesome Icons</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <div class="container-fluid"> <h2>Fixed Width Icons</h2> <p>With fixed width:</p> <div class="list-group"> <a href="#" class="list-group-item"><i class="fa fa-home fa-fw"></i> Home</a> <a href="#" class="list-group-item"><i class="fa fa-book fa-fw"></i> Library</a> <a href="#" class="list-group-item"><i class="fa fa-pencil fa-fw"></i> Applications</a> <a href="#" class="list-group-item"><i class="fa fa-cog fa-fw"></i> Settings</a> </div> <p>Without fixed width:</p> <div class="list-group"> <a href="#" class="list-group-item"><i class="fa fa-home"></i> Home</a> <a href="#" class="list-group-item"><i class="fa fa-book"></i> Library</a> <a href="#" class="list-group-item"><i class="fa fa-pencil"></i> Applications</a> <a href="#" class="list-group-item"><i class="fa fa-cog"></i> Settings</a> </div> </div> </body> </html>