- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
我创建了一个网页并将其链接到 cnd bootstrap 扩展,但是当我启动该网页时,我的布局看起来很简单且展开。这是网站的链接
kellito14.github.io
下面是代码:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="source/slider.js"></script>
<script src="//connect.soundcloud.com/sdk.js"></script>
<script type="text/javascript">
function myradio(){
myWindow = window.open("radiopage.php", "_blank", "width=300, height=100");
document.getElementById('radioplayer').pause();
}
</script>
</head>
<!--<body onload="javascript: myradio()" >-->
<body>
<header>
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col-md-4">
<img src="" alt="my falcon logo" width="113" height="80">
</div>
<div class="col-md-4" >
</div>
<div class="col-md-4">
</div>
</div>
</div>
</header>
<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active" id="home"><a href="index.html">Home</a></li>
<li ><a href="about.php">About</a></li>
<li><a href="podcast.php">Podcasts</a></li>
<li><a href="video.php">Videos</a></li>
<li><a href="subscribe.php">Subscribe</a></li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="col-md-10">
<div id="myCarousel" class="carousel slide">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="images/mfrlogo.jpg" alt="slide1" width="460" height="345" style=" width: 60%;height:400px;">
</div>
<div class="item">
<img src="images/enactusimg.jpg" alt="slide2" width="460" height="345" style=" width: 60%;height:400px;">
</div>
<div class="item">
<img src="images/enactusslide.jpg" alt="slide3" width="460" height="345" style=" width: 60%;height:400px;">
</div>
</div>
<button id="btnslide" class="btn btn-md "><a href="subscribe.html">Contribute!<a/></button>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="row">
<div class="col-md-8">
<img src="images/fb.png" alt="facebook icon">
<img src="images/tw.png" alt=" twitter icon">
</div>
</div>
<div class="row-centered" style="padding-left: 5px;">
<div class="col-md-2 bg-3" style="min-width: 20%; padding: 5px;">
<p> Subscribe to keep up to date on the latests podcasts and videos!</p>
<a href="subscribe.html"><button class="btn btn-color">Subscribe</button></a>
</div>
<div class="col-md-2 bg-3" style="min-width: 20%;padding: 5px;">
<p> The current list of Podcasts!</p>
<a href="podcasts.html"><button class="btn btn-color">Podcasts</button></a>
</div>
<div class="col-md-2 bg-3" style="min-width: 20%;padding: 5px;">
<p> Current Videos </p>
<a href="videos.html"><button class="btn btn-color">Videos</button></a>
</div>
<div class="col-md-2 bg-3" style="min-width: 20%;padding: 5px;">
<p>Learn more about us </p>
<a href="about.html"><button onclick="myradio()"class="btn btn-color">About US</button></a>
</div>
</div>
</div>
<div class="col-md-2 sidenav" style="overflow:hidden;">
<button class="accordion">Section 1</button>
<div class="panel">
<button onclick ="myradio()" class="btn btn-color"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Live Music</button>
</div>
<button class="accordion">Section 2</button>
<div class="panel">
<div class="slideCon">
<div class= "sD"><img id= "img1" src="Images/image1.jpg" alt="" width="100" height="100" border="0" /></div>
<div class= "sDTwo"><img id= "img2" src="Images/image2.jpg" alt="" width="100" height="100" border="0" /></div>
<div class= "sDThree"><img id ="img3" src="Images/image3.jpg" alt="" width="100" height="100" border="0" /></div>
</div>
</div>
</div>
</div>
</div>
<footer class="container-fluid bg-4 text-center">
<div class="row">
<div class="col-md-4">
<p>Website created by: Kelly Anaya</p>
</div>
</div>
<div class="row">
<div class="col-md-4">
<p>Please follow Us:</p>
</div>
</div>
</footer >
</body>
<script>
$('.carousel').carousel({interval: 10000});
</script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script type="text/javascript">
$(document).ready(function(){
//class of the divs containing slide One, Two, and Three
var slideOne= $(".sD"), slideTwo= $(".sDTwo"), slideThree= $(".sDThree");
//ID's of images One, Two, and Three.
var imgOne = document.getElementById("img1"), imgTwo = document.getElementById("img2"), imgThree = document.getElementById("img3");
var adNum= 0;
var ImgArray = new Array();
for(;adNum<=8; adNum++){
ImgArray[adNum]= new Image();
ImgArray[adNum].src= "Images/image"+(adNum+1)+".jpg";
}
adNum= 0;
$(".slideCon").delay(750).toggle();
startSlide();
function startSlide(){
slideOne.fadeIn(2500);
slideTwo.fadeIn(2750);
slideThree.fadeIn(3000);
slideOne.fadeOut(2500);
slideTwo.fadeOut(2750);
slideThree.fadeOut(3000);
setTimeout(function(){imgOne.src=ImgArray[adNum].src;}, 5500);
setTimeout(function(){imgTwo.src=ImgArray[adNum+1].src;}, 5500);
setTimeout(function(){ imgThree.src=ImgArray[adNum+2].src;}, 5500);
if(adNum < 6 ){// 9 is number of images
setTimeout(function(){adNum+=3;}, 5000);
}//end if
else{
setTimeout(function(){adNum=0;}, 5000);
}
setTimeout(function(){startSlide();}, 6500);
}//end startSlide
});
</script>
<!-- for the accordion-->
<script type="text/javascript">
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].onclick = function(){
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
</script>
</html>
最佳答案
这是您收到的错误消息,
(index):7 Mixed Content: The page at 'https://kellito14.github.io/' was loaded over HTTPS, but requested an insecure stylesheet 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'. This request has been blocked; the content must be served over HTTPS.
(index):1 Mixed Content: The page at 'https://kellito14.github.io/' was loaded over HTTPS, but requested an insecure script 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'. This request has been blocked; the content must be served over HTTPS.
所以问题是混合内容,解决这个问题的一种方法是将链接更改为 https,
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
或者如果你不确定 http/https,那么就这样吧:
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
浏览器会自动决定是通过http还是https加载。
关于html - 为什么 bootstrap 在我的 github 网页上不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38287901/
这个问题与窗口处理或多个浏览器窗口的杂耍无关,而是关于在同一窗口中浏览 Web 应用程序的网页。我遇到这样的情况 1.我导航为屏幕 A->屏幕 x->屏幕 Y->屏幕 B 2.我需要捕获首次登录时屏幕
我有这个要求: The system will record the length of time the user displayed each page. 虽然在富客户端应用程序中微不足道,但我不
我在调试 JavaScript 网页时遇到问题。我遇到困难的地方是我标记 (...) 的地方。我收到未定义的错误。我是否将函数 countDown(start, Increment) 中的参数(即 s
需要一些帮助。我刚开始学习 HTML,今天一直在研究如何制作菜单,但在这样做时遇到了问题。 我似乎不知道如何在屏幕上居中显示菜单。 这就是我目前所拥有的; Home
我想通过单击按钮将小程序的任何参数发送到浏览器。 (HTML)。我知道按钮对象有一些方法,但不知道使用哪个。我怎样才能做到这一点?ps .: 我使用的是 jnlp 协议(protocol)。 类似于:
我应该使用Wikipedia的文章链接数据转储从组织的网站中提取代表性术语。 为此,我已经- 抓取并下载了该组织的网页。 (〜110,000) 创建了Wikipedia ID和术语/标题的字典。 (约
我的网页中包含 javascript 函数... function callFromAndroid(varName) { alert("call from android activated by
我想创建一个 Java 应用程序,允许用户导入网页并能够在程序中对其进行编辑。 导入网页将对其进行渲染,并且页面的组件(图像、文本等)将是可编辑或可拖动的,从而允许用户重新布局组件。 例如,用户可以加
当我们按下按钮时,我向 JFrame 添加了一个网页(网页在同一框架中打开)。效果很好。但我想向其中添加一个scrollPane,但是当我添加 JScrollPane jsp = new JScrol
我在使用 particles.js 时无法将图像居中。图像居中,但略微偏离中心。为什么要这样做,我如何才能将它居中? html particles.js demo CSS
我正在尝试在加载页面时播放音频,它应该非常简单但我无法完成。 问题是它没有播放,我尝试检查自动播放的状态(真/假),它说它在页面加载时播放,尽管它没有播放,还尝试制作一个将改变自动播放的功能状态为
我正在尝试显示用户从列表中选择的图像,但我在屏幕上看不到任何内容。 .container { position: relative; } .ce
这听起来有点奇怪,但我需要一些帮助,网页必须有一行必须包含三个部分,第一部分必须有 1 列的偏移量,并且部分之间的空间必须是 10px到目前为止,使用 Bootstrap 一切顺利。 现在第二行将有
这个问题在这里已经有了答案: Web and physical units (2 个答案) Div width in cm (inch) (6 个答案) 关闭 9 年前。
这个问题不太可能帮助任何 future 的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visit
我想将我的 IPython 笔记本的宽度设置为 2500 像素,并且我希望它左对齐。我该怎么做? 我使用这段代码来应用我自己的 CSS: from IPython.core.display impor
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 7 年前。 Improve this q
我在 Word 中制作了一份文档,希望人们在其中添加自己的姓名以及他们的教学经验。我已将其保存为网页并发布到此处: http://epicforum.net/TS ...但操作部分实际上就是这样: h
这个问题在这里已经有了答案: Execute JS code after pressing the spacebar (5 个答案) 关闭 4 年前。
我正在开发一个只有两个页面的网站。 1.登录 2.首页 我正在使用 Angular 框架。 app.config(['$routeProvider', function ($routeProvider
我是一名优秀的程序员,十分优秀!