小编Ton*_*ony的帖子

如何在 Markdown 中放置 fontawesome 图标?(readme文件将上传到github)

我想在我的自述文件中添加一些 fontawesome 图标来解释它们在我的网站中的含义,但是 markdown 不允许使用 css,所以有没有办法克服这个问题?

这是我得到图标的地方

这将是 html<i class="fas fa-crown"></i>

这是样式表链接 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous">

html css markdown github-flavored-markdown readme

15
推荐指数
1
解决办法
2万
查看次数

停止 Bootstrap 表拉伸至全屏宽度并向单元格添加额外空间

我有一张适合最大 600 像素屏幕的表格。当屏幕尺寸大于 600 像素时,表格会增大以填满屏幕,并在每个单元格右侧为每列提供大量额外间距。

如何删除此阻止表格增长并删除多余的不需要的空间,以便下一列从上一列中最大单元格的末尾开始?

<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
    integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> -->

</head>
<table class="table table-dark">
  <thead>
    <tr>
      <th scope="col">Stat</th>
      <th scope="col">First</th>
      <th scope="col">Last</th>
      <th scope="col">Handle</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">Highest Money Reached</th>
      <td>Mark</td>
      <td>Otto</td>
      <td>@mdo</td>
    </tr>
    <tr>
      <th scope="row">2</th>
      <td>Jacob</td>
      <td>Thornton</td>
      <td>@fat</td>
    </tr>
    <tr>
      <th scope="row">3</th>
      <td>Larry</td>
      <td>the Bird</td>
      <td>@twitter</td>
    </tr>
  </tbody>
</table>
Run Code Online (Sandbox Code Playgroud)

代码也在这个JsFiddle上

html css bootstrap-4

5
推荐指数
1
解决办法
3212
查看次数