为了账号安全,请及时绑定邮箱和手机立即绑定

bootsrap3.3.7下载后<link href="css/bootstrap.min.css">没有样式,使用http://...却可以

bootsrap3.3.7下载后<link href="css/bootstrap.min.css">没有样式,使用http://...却可以

慕粉3286211 2016-08-10 10:24:34
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <link href="../bootstrap/bootstrap-3.3.7-dist/bootstrap-3.3.7-dist/css/bootstrap.min.css" > <!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">--> </head> <body> <body> <!-- Standard button --> <button type="button" class="btn btn-default">Default</button> <!-- Provides extra visual weight and identifies the primary action in a set of buttons --> <button type="button" class="btn btn-primary">Primary</button> <!-- Indicates a successful or positive action --> <button type="button" class="btn btn-success">Success</button> <!-- Contextual button for informational alert messages --> <button type="button" class="btn btn-info">Info</button> <!-- Indicates caution should be taken with this action --> <button type="button" class="btn btn-warning">Warning</button> <!-- Indicates a dangerous or potentially negative action --> <button type="button" class="btn btn-danger">Danger</button> <!-- Deemphasize a button by making it look like a link while maintaining button behavior --> <button type="button" class="btn btn-link">Link</button> </body> </body> </html>
查看完整描述

1 回答

?
田心枫

TA贡献1064条经验 获得超383个赞

路径不对,注意相对路径和绝对路径

查看完整回答
反对 回复 2016-08-10
  • 慕粉3286211
    慕粉3286211
    路径没问题,加载是成功的啊
  • 田心枫
    田心枫
    ../bootstrap/bootstrap-3.3.7-dist/bootstrap-3.3.7-dist/css/bootstrap.min.css 仔细看看吧为什么有两个bootstrap-3.3.7-dist?
  • 1 回答
  • 0 关注
  • 2602 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信