Bootstrap 引导页脚图标

0lvr5msh  于 2022-12-16  发布在  Bootstrap
关注(0)|答案(1)|浏览(188)

这是我喜欢创建的大多数网站的框架。我希望能够添加图片链接,而不是必须参考我电脑上的照片。我希望得到一些帮助。

<!DOCTYPE html>
<html lang="en">
<head>
  <title>$title$</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
  <h1>Bootstrap template</h1>
  <p>$text$</p> 
    <footer class="blog-footer">
      <p>Made by Kevin Leong</p>
      <a target="_blank" href="#"><img src="/assets/social-icons/facebook_icon.png" width="30" height="30" class="img-fluid"></a>
  
      <a target="_blank" href="#"><img src="/assets/social-icons/twitter-icon.png" width="30" height="30" class="img-fluid"></a>
  
      <a target="_blank" href="#"><img src="/assets/social-icons/instagram.png" width="30" height="30" class="img-fluid"></a>
  
      <a target="_blank" href="#"><img src="/assets/social-icons/linked-in-icon.png" width="30" height="30" class="img-fluid"></a>
  
      <a target="_blank" href="#"><img src="/assets/social-icons/pinterest-icon.png" width="30" height="30" class="img-fluid"></a>
  
      <a target="_blank" href="#"><img src="/assets/social-icons/flickr-icon.png" width="30" height="30" class="img-fluid"></a>
    </footer>
</div>
</body>
</html>
ufj5ltwl

ufj5ltwl1#

可以按如下方式引用外部图像:

<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Aster_Tataricus.JPG/321px-Aster_Tataricus.JPG" />

右键点击任何在线图片并选择copy image address,然后将其粘贴到img元素的src=""中。但仅使用来自https://commons.wikimedia.org/https://www.pexels.com/等给予您使用其图片的位置的图片。

相关问题