我怎样才能让它离线工作呢?这是在我的index.html中:
<link href='https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/paper/bootstrap.min.css' rel='stylesheet'>更新:
css中有一行包含http调用来获取字体css,我是否也需要脱机下载它?
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");/*!发布于 2017-05-25 05:46:33
从引导程序下载缩小的CSS文件,并将其存储在外部CSS文件夹中,然后将其作为外部CSS资源调用到页面中。
for example:
<link rel="stylesheet" href="css/bootstrap.min.css">发布于 2017-05-25 05:46:40
下载引导文件并保存它。 https://v4-alpha.getbootstrap.com/getting-started/download/
basic语法:
<link href='Path/yourNameFile.css' rel='stylesheet'>路径相对于Html文件的源进行解释。 例如:如果您的引导文件位于MyBootstrap文件夹中,因此该文件夹和Html文件是某个位置,您的代码必须如下所示:
<link href='MyBootstrap/YourNameFile.css' rel='stylesheet'>发布于 2017-05-25 05:46:51
您必须下载css文件,然后使用以下内容
<link href="css/bootstrap.min.css" rel="stylesheet">您可以在这里看到更多信息:https://getbootstrap.com/getting-started/
https://stackoverflow.com/questions/44173113
复制相似问题