gpt4 book ai didi

javascript - 我的 block 引用没有运行。我也链接了 Bootstrap css 和 js 文件,但它似乎不起作用

转载 作者:行者123 更新时间:2023-11-28 14:08:08 24 4
gpt4 key购买 nike

我已经从 bootstrap 链接了下载的 css 和 js 文件,但这些功能似乎无法正常工作。 <blockquote>标签只是返回简单的文本。还有 <cite> </cite>没有给我“-”。似乎是什么问题?

<head>
<title>Bootstrap Cheat Sheet</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/custom.css">
</head>

<body>
<!-- Block Quotes -->

<blockquote class="blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>
<footer>Quote By <cite title="John Doe">John Doe</cite></footer>
</blockquote>

最佳答案

前提是您已经正确加载了 bootstrap.css 文件(您可以在开发者工具中查看控制台)...并且您的 custom.css 没有覆盖blockquote 类...

下面的片段应该适合您:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<div class="container">

<blockquote class="blockquote">
<p>For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.</p>
<footer class="blockquote-footer">From WWF's website</footer>
</blockquote>

<blockquote class="blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>
<footer>Quote By <cite title="John Doe">John Doe</cite></footer>
</blockquote>
</div>

关于javascript - 我的 block 引用没有运行。我也链接了 Bootstrap css 和 js 文件,但它似乎不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56931956/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com