【css报错】Page‘**/bootstrap-theme.min.css‘requested without问题解决

在IDEA导入了其它HTML文件却没有正确配置

今天用复制了一个教程里的example.html文件到项目里
直接用浏览器打开
报错:
Page ‘http://localhost:63343/M…s/bootstrap-theme.min.css’ requested without
解决方法
在这里插入图片描述

<!DOCTYPE html>
<html>
<head>
    <meta name="author" content="Yeeku.H.Lee(CrazyIt.org)" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title> Bootstrap模板 </title>
    <link rel="stylesheet" href="./css/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="./css/bootstrap/bootstrap-theme.min.css">
</head>
<body>
<!-- panel、panel-danger是Bootstrap提供的CSS样式 -->
<div class='panel panel-danger'>Bootstrp</div>
<script type="text/javascript" src="./js/bootstrap/jquery-3.1.1.js"></script>
<script type="text/javascript" src="./js/bootstrap/bootstrap.min.js"></script>
</body>
</html>

如图所示:先把需要的js、css文件放到web目录下
html中引用路径如下:<link rel="stylesheet" href="./css/bootstrap/bootstrap.min.css">

./是指你的html文件的同一级
…/是指你的html文件的上一级在这里插入图片描述
可根据自己实际情况修改!(若无对应的css/js文件,那只好删掉了)

新人第一篇博客~给自己加油打气!

如有错误,还请多多指教!
转载或者引用本文内容请注明来源及原作者:橘足轻重

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值