我試着簡單的登錄功能,但按鈕沒有跨越,總是顯示登錄!跨度按鈕和Jade中的腳本
我想人民按登錄,然後出現登錄框,但它始終可見!有誰能夠幫助我?
layout.jade
doctype html5
html
head
title #{title} - Main Page
link(rel='stylesheet', href='/stylesheets/style.css')
script(type='text/javascript')
$('#toggle-login').click(function(){
$('#login').toggle();
});
body
header
span#toogle-login.button(href='#login') Log in
#login
#triangle
h1 Log in
form
input(type='email', placeholder='Email')
input(type='password', placeholder='Password')
input(type='submit', value='Log in')
h1 Screen Shot Saver
h2 Pictured your favourite websites
.container
.main-content
block content
.sidebar
block sidebar
footer
p Running on node with Express, Jade and Stylus
你在哪裏包括jQuery庫? –