Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 字体大小相同的链接_Html_Font Awesome - Fatal编程技术网

Html 字体大小相同的链接

Html 字体大小相同的链接,html,font-awesome,Html,Font Awesome,我正在尝试创建与FontAwesome相同大小的按钮超链接 HTML格式如下: <a class="btn btn-lg btn-info" href="#"> Button 1 Info<br /> sub<br /> <i class="fa fa-flag fa-2x pull-right"></i> </a> <a class="btn btn-lg btn-info" href="#"> Bu

我正在尝试创建与FontAwesome相同大小的按钮超链接

HTML格式如下:

<a class="btn btn-lg btn-info" href="#">
 Button 1 Info<br /> sub<br />
<i class="fa fa-flag fa-2x pull-right"></i>
</a>


<a class="btn btn-lg btn-info" href="#">
  Button 2<br /><br />
<i class="fa fa-cloud-upload fa-2x pull-right"></i>
</a>


<a class="btn btn-lg btn-info" href="#">
  Button<br /><br />
<i class="fa fa-cloud-download fa-2x pull-right"></i>
</a>
如下图所示

所有按钮的大小应相同


font awesome中是否有内置的css类?

请同时包含相关的css代码。如果我们能够重现您的问题,这将有所帮助。这可能会有所帮助:我使用的是cdn中的引导和字体awsome。添加了以下css类:。按钮SameSize{width:9em;text align:center;padding:0.2em 0em 0.2em 0em;}然后添加了该类,它成功了