我正在使用jQuery的第一次,我不能得到它下載。 我是新的發佈。如果我沒有正確地完成,我很抱歉;任何建設性的批評是受歡迎的。 我對編碼非常陌生。我現在在大學有3個季度,並且已經介紹了C#,Ruby,html,SQL,JS和PS。我知道數據類型,函數,變量和循環......但我的心臟語法知之甚少,而且我非常掙扎。 我需要新手級別的幫助,希望能夠通過簡單明瞭的步驟讓我的jQuery從下載到工作。 我覺得有點愚蠢,但我一直在這個太久,需要幫助。我相信這對熟悉它的人來說相當簡單。有人請幫助!我花了太多的時間嘗試沒有結果....如何下載Jquery如果鏈接只顯示源代碼並將其連接到我的html
爲了做到這一點,我明白我需要粘貼一個Jquery庫文件「下載未壓縮,開發jQuery 1.11.3」 和....「從jQuery官方站點下載未壓縮的開發jQuery Migrate 1.2.1「 」。
我試圖下載它,但我得到的只是源文件。我看着utube vids學習,但沒有找到太多東西,而我發現的東西是針對具體的教程目標,我無法吸收它。
我明白,爲了讓我的jQuery庫在我的html,我需要這樣的:
不知道,如果它在HTML的頭部或身體....我想我有在正確的位置? 我被告知必須在我的CDN前添加http:
我試圖做到這一點:
我的網頁應該如何工作。 關閉所有標題的頁面加載。當用戶點擊帶有加號的標題時,將顯示下面的文本,並且加號變爲減號。如果用戶單擊帶有減號的標題,則文本隱藏並且標誌變爲加號。
我有一個HTML頁面:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FAQs</title>
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="stylesheet" href="index.css">
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="faqs.js"></script>
</head>
<body>
<section id="faqs">
<h1>jQuery FAQs</h1>
<h2><a href="#" id="first_link">What is jQuery?</a></h2>
<div>
<p>jQuery is a library of the JavaScript functions that you're most likely
to need as you develop web sites.
</p>
</div>
<h2><a href="#">Why is jQuery becoming so popular?</a></h2>
<div>
<p>Three reasons:</p>
<ul>
<li>It's free.</li>
<li>It lets you get more done in less time.</li>
<li>All of its functions are cross-browser compatible.</li>
</ul>
</div>
<h2><a href="#">Which is harder to learn: jQuery or JavaScript?</a></h2>
<div>
<p>For most functions, jQuery is significantly easier to learn
and use than JavaScript. But remember that jQuery is JavaScript.
</p>
</div>
</section>
</body>
</html>
,我有一個的CSS頁面:
/* type selectors */
article, aside, figure, figcaption, footer, header, nav, section {
display: block;
}
* {
margin: 0;
padding: 0;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 87.5%;
width: 650px;
margin: 0 auto;
border: 3px solid blue;
}
section {
padding: 15px 25px;
}
h1 {
font-size: 150%;
}
h2 {
font-size: 120%;
padding: .25em 0 .25em 25px;
cursor: pointer;
background: url(images/plus.png) no-repeat left center;
}
h2.minus {
background: url(images/minus.png) no-repeat left center;
}
a {
color: black;
text-decoration: none;
}
h2:hover {background-color: #ccccff;}
a:focus, a:hover {
color: blue;
}
div {
display: none;
}
div.open {
display: block;
}
ul {
padding-left: 45px;
}
li {
padding-bottom: .25em;
}
p {
padding-bottom: .25em;
padding-left: 25px;
}
and two .png images that are a and a minus plus signs.
'文件另存爲... ...和瞧,它被下載。然後簡單地指出一個腳本標籤 – charlietfl