- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
所以我正在尝试使用 jQuery 插件来创建分页效果,如 http://www.florianwacker.de/en/ 中所示
我在 http://www.alvarotrigo.com/fullPage/ 找到了一个插件链接
这看起来很简单,但我无法让它工作。
这是HTML
<head>
<title>Aldi Rebrand</title>
<link rel="stylesheet" type="text/css" href="css/jquery.fullPage.css"/>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<script type="text/javascript" src="js/jquery.fullPage.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#fullpage').fullpage();
});
</script>
</head>
<body class="red">
<div id="navBar">
<a href="index.html"><img id="navLogo" src="images/navLogo.png"></a>
<ul>
<li class = "navLink mainLink"><a href="index.html">Work</a></li>
<li class = "navLink mainLink"><a href="about.html">About</a></li>
<li class = "navLink mainLink"><a href="https://ggann.tumblr.com">Blog</a></li>
</ul>
</div>
<div id="fullpage">
<div class="section">
<div id="aldiPhoto"></div>
<div id="descriptionAldi">
<h2>ALDI Rebrand <span>BRANDING | LOGO | PRINT</span></h2>
<p class="intro"><strong>ALDI</strong> is an international grocer, spanning from Germany to The United States and many other countries around the world.</p>
<p class="prjctDescription">The premise behind this semester long project was to immerse ourselves in the company/brand we were assigned. I was assigned ALDI. In this scenario, the goal of the rebrand was to convey a new “fresh and local” side to ALDI and their proposed farmers market addition to their stores. We were asked to create a brand new logo, at least four pieces of collateral and a brand guideline to demonstrate our research, branding applications and flexibility.</p>
<div class="btnDiv">
<a href="https://dribbble.com/shots/1869394-ALDI-Rebrand" class="btnText"><div class="btn1"><p>VIEW ON DRIBBBLE</p></div></a>
<a href="https://www.behance.net/gallery/22556203/ALDI-Rebrand" class="btnText"><div class="btn2"><p>VIEW ON BEHANCE</p></div></a>
</div>
</div>
</div>
<div class="section">
<div id="aldiPage2"></div>
</div>
<div class="section">
<div id="aldiPage3"></div>
</div>
</div>
<div class="ticker"><p class="currentPage">1</p><div class="tickerBtm"><p class="maxPage">3</p></div></div>
</body>
这是我网站的 CSS
a {
color: #ffffff;
font-size: 1em;
font-family: Helvetica, Arial, sans-serif;
cursor: pointer;
text-decoration: none;
}
body {
padding: 0px;
margin: 0px;
height: 100%;
}
body.red {
background-color: #d04b47;
}
div {
margin: 0px;
padding: 0px;
}
h1 {
color: #ffffff;
font-size: 10em;
padding: 20px;
margin-bottom: 0px;
line-height: .85em;
}
h2 {
color: #d04b47;
font-size: 1em;
margin-left: 10%;
margin-top: 20%;
margin-bottom: 0px;
line-height: .85em;
font-family: Helvetica, Arial, sans-serif;
}
h2 span {
color: #b1b3b6;
font-size: .25em;
font-weight: 100;
padding-left: 25px;
}
section {
position: relative;
overflow: hidden;
width: 100%;
height: 100%;
}
ul {
margin: 0;
padding: 0;
border: 0;
display: inline-flex;
}
/* BLOG POST TALL CONCEPT */
h2.blgHead {
color: #d04b47;
font-size: 3em;
margin-right: 10%;
margin-left: 10%;
margin-top: 25%;
margin-bottom: 0px;
line-height: 1.25em;
font-family: Helvetica, Arial, sans-serif;
}
h2.blgHead span {
color: #b1b3b6;
font-size: .25em;
font-weight: 100;
padding-left: 25px;
}
.blgDescription {
color: #000000;
margin-left: 10%;
margin-right: 10%;
padding: 0px;
font-size: .75em;
line-height: 1.5em;
}
.blgIntro {
clear: both;
margin: 0px;
margin-top: 15px;
margin-left: 10%;
margin-right: 10%;
color: #000000;
font-size: 1.25em;
line-height: 1.5em;
}
.blogPostTall {
overflow: hidden;
float: left;
display: none;
width: 25%;
margin: 0px;
padding: 0px;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
.btn1 {
position: absolute;
left: 0px;
margin-left: 10%;
margin-top: 7%;
border: solid #d04b47 2px;
width: 12em;
-moz-transition: all 0.25s ease; /* Firefox 4 */
-webkit-transition: all 0.25s ease; /* Safari and Chrome */
-o-transition: all 0.25s ease; /* Opera */
}
.btn1:hover {
color: #ffffff;
margin-left: 9%;
margin-top: 7%;
border: solid #d04b47 2px;
background-color: #d04b47;
width: 13em;
}
.btn2 {
position: absolute;
right: 0px;
margin-right: 10%;
margin-top: 7%;
border: solid #d04b47 2px;
width: 12em;
-moz-transition: all 0.25s ease; /* Firefox 4 */
-webkit-transition: all 0.25s ease; /* Safari and Chrome */
-o-transition: all 0.25s ease; /* Opera */
}
.btn2:hover {
color: #ffffff;
margin-right: 9%;
margin-top: 7%;
border: solid #d04b47 2px;
background-color: #d04b47;
width: 13em;
}
.btnDiv {
position: relative;
width: 100%;
}
.btnText {
color: #d04b47;
font-size: 1em;
font-family: Helvetica, Arial, sans-serif;
cursor: pointer;
text-decoration: none;
text-align: center;
}
.description {
color: #ffffff;
padding-left: 20px;
padding-right: 50px;
line-height: 1.5em;
}
.intro {
color: #000000;
font-size: 2em;
padding-left: 10%;
padding-right: 10%;
line-height: 1.5em;
}
.prjctDescription {
color: #000000;
padding-left: 10%;
padding-right: 10%;
line-height: 1.5em;
}
.category {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter: alpha(opacity=(50));
opacity: 0.5;
color: #000000;
font-size: .85em;
font-weight: 100;
-moz-transition: all 0.25s ease; /* Firefox 4 */
-webkit-transition: all 0.25s ease; /* Safari and Chrome */
-o-transition: all 0.25s ease; /* Opera */
}
.category:hover {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=(100));
opacity: 1;
color: #ffffff;
font-size: .85em;
font-weight: 100;
}
.galleryImg {
display: inline-flex;
width: 25%;
margin: 0px;
margin-bottom: -4px;
padding: 0px;
transition: all 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
.hidden {
opacity: 0.25;
}
.mainLink {
font-size: .85em;
font-weight: 800;
-moz-transition: all 0.25s ease; /* Firefox 4 */
-webkit-transition: all 0.25s ease; /* Safari and Chrome */
-o-transition: all 0.25s ease; /* Opera */
}
.navLink {
display: inline-flex;
position: relative;
margin-left: 22px;
}
.currentPage {
margin-bottom: .25em;
margin-left: .5em;
margin-right: .5em;
margin-top: .5em;
padding: 0px;
color: #ffffff;
font-size: 1em;
font-family: Helvetica, Arial, sans-serif;
}
.maxPage {
margin-bottom: .25em;
margin-left: .5em;
margin-right: .5em;
margin-top: 0em;
padding: 0px;
color: #ffffff;
font-size: 1em;
font-family: Helvetica, Arial, sans-serif;
}
.ticker {
bottom: 0px;
left: 0px;
position: fixed;
border: solid #ffffff 2px;
margin: 1.5em;
padding: 0px;
}
.tickerBtm {
width: 1.5em;
bottom: 0px;
left: 0px;
border-top: solid #ffffff 2px;
margin: 0px;
padding-top: .5em;
}
#aboutPhoto {
background-image: url(../images/Red2.jpg);
background-position: top,left;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
float: left;
width: 50%;
height: 100vh;
}
#aldiPhoto {
background-image: url(../images/aldiLarge.jpg);
background-position: top left;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
float: left;
width: 50%;
height: 100vh;
}
#aldiPage2 {
background-image: url(../images/aldiPattern.jpg);
background-position: top left;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#aldiPage3 {
background-image: url(../images/Jar1.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#aldi {
float: left;
width: 50%;
margin: 0px;
margin-bottom: -4px;
padding: 0px;
transition: all 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
#createathon {
clear: both;
width: 25%;
margin: 0px;
margin-bottom: -4px;
padding: 0px;
transition: all 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
#description {
float: right;
width: 50%;
height: 100vh;
background-color: #d04b47;
}
#descriptionAldi {
float: right;
width: 50%;
height: 100vh;
background-color: #ffffff;
}
#elloPhoto {
background-image: url(../images/Ello.gif);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
float: left;
width: 50%;
height: 100vh;
}
#everlane {
clear: both;
width: 25%;
margin: 0px;
margin-bottom: -4px;
padding: 0px;
transition: all 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
#fincher {
width: 50%;
margin: 0px;
margin-bottom: -4px;
padding: 0px;
transition: all 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
#fincherPhoto {
background-image: url(../images/fincher1.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
float: left;
width: 50%;
height: 100vh;
}
#fincherPage2 {
background-image: url(../images/fincher3.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#fincherPage3 {
background-image: url(../images/fincher4.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#fincherPage4 {
background-image: url(../images/fincher5.jpg);
background-position: top left;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#fincherPage5 {
background-image: url(../images/fincher6.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
width: 100%;
height: 100vh;
}
#fincherPage6 {
background-image: url(../images/fincher7.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#fincherPage7 {
background-image: url(../images/fincher8.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#fincherPage8 {
background-image: url(../images/fincher9.gif);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#mobmail {
clear: both;
width: 25%;
margin: 0px;
margin-bottom: -4px;
padding: 0px;
transition: all 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
#myLogo {
clear: inherit;
float: left;
width: 50%;
margin: 0px;
margin-bottom: -4px;
padding: 0px;
transition: all 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
#navBar {
z-index: 1;
position: fixed;
margin-top: 0px;
padding: 20px;
border: 0px;
width: 100%;
background-color: #d04b47;
-moz-transition: all .25s; /* Firefox 4 */
-webkit-transition: all .25s; /* Safari and Chrome */
-o-transition: all .25s; /* Opera */
}
#navBar.scroll {
margin-top: -48px;
}
#navBar.scroll:hover{
margin-top: 0px;
}
#navLogo {
display: inline-flex;
height: 20px;
margin-top: -5px;
margin-right: 5px;
margin-left: 5px;
margin-bottom: -5px;
}
#pact {
float: left;
width: 25%;
margin: 0px;
margin-bottom: -4px;
padding: 0px;
transition: all 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
}
#rcfPhoto {
background-image: url(../images/rcf1.JPG);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
float: left;
width: 50%;
height: 100vh;
}
#rcfPage2 {
background-image: url(../images/rcf2.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#rcfPage3 {
background-image: url(../images/rcf3.jpg);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
#rcfPage4 {
background-image: url(../images/rcf4.JPG);
background-position: top center;
background-size: cover;
background-repeat: no-repeat;
background-color: #d04b47;
clear: both;
width: 100%;
height: 100vh;
}
我使用了提供的 css 和 js 文件,您可以在我的 html 的头部看到。无论出于何种原因,该页面的行为就好像只有第一部分,而其他两个“部分”根本不显示。
我只是不明白我怎么错了。
最佳答案
切换脚本包括顺序,将jquery.js放在jquery.fullPage.js的顶部。尝试这样的事情,
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.fullPage.js"></script>
关于javascript - jQuery 插件无法运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28597554/
我通过 spring ioc 编写了一些 Rest 应用程序。但我无法解决这个问题。这是我的异常(exception): org.springframework.beans.factory.BeanC
我对 TestNG、Spring 框架等完全陌生,我正在尝试使用注释 @Value通过 @Configuration 访问配置文件注释。 我在这里想要实现的目标是让控制台从配置文件中写出“hi”,通过
为此工作了几个小时。我完全被难住了。 这是 CS113 的实验室。 如果用户在程序(二进制计算器)结束时选择继续,我们需要使用 goto 语句来到达程序的顶部。 但是,我们还需要释放所有分配的内存。
我正在尝试使用 ffmpeg 库构建一个小的 C 程序。但是我什至无法使用 avformat_open_input() 打开音频文件设置检查错误代码的函数后,我得到以下输出: Error code:
使用 Spring Initializer 创建一个简单的 Spring boot。我只在可用选项下选择 DevTools。 创建项目后,无需对其进行任何更改,即可正常运行程序。 现在,当我尝试在项目
所以我只是在 Mac OS X 中通过 brew 安装了 qt。但是它无法链接它。当我尝试运行 brew link qt 或 brew link --overwrite qt 我得到以下信息: ton
我在提交和 pull 时遇到了问题:在提交的 IDE 中,我看到: warning not all local changes may be shown due to an error: unable
我跑 man gcc | grep "-L" 我明白了 Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more inf
我有一段代码,旨在接收任何 URL 并将其从网络上撕下来。到目前为止,它运行良好,直到有人给了它这个 URL: http://www.aspensurgical.com/static/images/a
在过去的 5 个小时里,我一直在尝试在我的服务器上设置 WireGuard,但在完成所有设置后,我无法 ping IP 或解析域。 下面是服务器配置 [Interface] Address = 10.
我正在尝试在 GitLab 中 fork 我的一个私有(private)项目,但是当我按下 fork 按钮时,我会收到以下信息: No available namespaces to fork the
我这里遇到了一些问题。我是 node.js 和 Rest API 的新手,但我正在尝试自学。我制作了 REST API,使用 MongoDB 与我的数据库进行通信,我使用 Postman 来测试我的路
下面的代码在控制台中给出以下消息: Uncaught DOMException: Failed to execute 'appendChild' on 'Node': The new child el
我正在尝试调用一个新端点来显示数据,我意识到在上一组有效的数据中,它在数据周围用一对额外的“[]”括号进行控制台,我认为这就是问题是,而新端点不会以我使用数据的方式产生它! 这是 NgFor 失败的原
我正在尝试将我的 Symfony2 应用程序部署到我的 Azure Web 应用程序,但遇到了一些麻烦。 推送到远程时,我在终端中收到以下消息 remote: Updating branch 'mas
Minikube已启动并正在运行,没有任何错误,但是我无法 curl IP。我在这里遵循:https://docs.traefik.io/user-guide/kubernetes/,似乎没有提到关闭
每当我尝试docker组成任何项目时,都会出现以下错误。 我尝试过有和没有sudo 我在这台机器上只有这个问题。我可以在Mac和Amazon WorkSpace上运行相同的容器。 (myslabs)
我正在尝试 pip install stanza 并收到此消息: ERROR: No matching distribution found for torch>=1.3.0 (from stanza
DNS 解析看起来不错,但我无法 ping 我的服务。可能是什么原因? 来自集群中的另一个 Pod: $ ping backend PING backend.default.svc.cluster.l
我正在使用Hibernate 4 + Spring MVC 4当我开始 Apache Tomcat Server 8我收到此错误: Error creating bean with name 'wel
我是一名优秀的程序员,十分优秀!