-1
我正在更新我的許多網站以使用jquerymobile可摺疊菜單。我添加了jQuery腳本,但現在當我點擊菜單鏈接時,他們不工作。Html鏈接不起作用
起初我收到此錯誤消息
我加
$(document).bind('mobileinit',function(){
$.mobile.pushStateEnabled = false;
});
和錯誤走開了,但仍聯繫不工作。
這是網站代碼
<!-- custom styles-->
html,body{
\t /*height: 100%;
\t width: 100%;
\t margin: 0px;
\t padding: 0px;*/
\t /*background-color: #FF9900;*/
\t /*font-family: 'Lucida Calligraphy', Helvetica,Arial,sans-serif;*/
}
@media (min-width: 769px){
body{
\t background: url(images/florence2.jpg) no-repeat center center fixed;
\t -webkit-background-size: cover;
\t -moz-background-size: cover;
\t -o-background-size: cover;
\t background-size: cover;
\t
}
\t #left{
\t \t /*height: 100%;*/
\t \t width: 50em;
\t \t float: left;
\t \t /*background-color: rgb(255,153,0);*/
\t \t background-image: url(images/background.png);
\t \t -webkit-background-size: cover;
\t \t -moz-background-size: cover;
\t \t -o-background-size: cover;
\t \t background-size: cover;
\t \t margin-left: auto;
\t \t margin-top: 25px;
\t \t
\t }
\t .container{
\t \t margin-left: 10%;
\t }
\t .logo img{
\t \t height: 16em;
\t \t width: 100%;
\t \t display: block;
\t \t margin-left: auto;
\t \t margin-right: auto;
\t }
\t #sidebar{
\t \t width: 10em;
\t \t height: 20em;
\t \t /*margin-left: 15px;*/
\t \t margin-top: 40px;
\t \t line-height: 30px;
\t \t clear: both;
\t \t float: left;
\t \t /*color: #ba2817;*/
\t }
\t .navbar-default .navbar-nav>li>a {
color: #FFFFFF;
}
.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
color: #FFF;
background-color: transparent;
}
\t #side{
\t \t /*font: 22px/1.7em "Lucida Calligraphy",Helvetica,Arial,sans-serif;*/
\t \t color: #FFF;
\t \t text-align: left;
\t }
\t #sidebar li{
\t \t list-style-type: none;
\t \t border-bottom: 1px;
\t \t border-bottom-width: 1px;
\t \t border-bottom-style: solid;
\t \t /*border-bottom-color: rgb(52, 52, 52);*/
\t \t border-bottom-color: rgb(255,255,255);
\t \t text-align: left;
\t \t font: 17px/2em 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #address{
\t \t width: 29%;
\t \t margin-left: 5em;
\t \t color: #FFF;
\t \t list-style: none;
\t \t display: inline-block;
\t }
\t #hours{
\t \t width: 30%;
\t \t margin-left: 5em;
\t \t color: #FFF;
\t \t list-style: none;
\t \t float: right;
\t \t display: inline-block;
\t }
\t #menu li{
\t \t list-style-type: none;
\t \t /*font-size: 15px; */
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t \t color: #FFF;
\t \t margin-left: 7em;
\t \t text-align: center;
\t }
\t #menu h3{
\t \t text-decoration: underline;
\t \t font-size: 22px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #menu p{
\t \t margin-bottom: 0px;
\t \t padding-top: 8px;
\t \t font-size: 22px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #menu #sub {
\t \t margin-top: 0px;
\t \t padding-top: 0px;
\t \t font-size: 16px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #social li{
\t \t text-decoration:none;
\t \t border:none;
\t \t display: inline-block;
\t }
\t #social{
\t \t text-align: center;
\t }
\t #mobsocial{
\t \t
\t \t display: none;
\t \t
\t }
\t a:link {
\t \t text-decoration: none;
\t \t color: #FFF;
\t }
\t a:visited {
\t \t text-decoration: none;
\t \t color: #FFF;
\t }
\t a:hover {
\t \t text-decoration: none;
\t \t color: #FFF;
\t }
\t a:active {
\t \t text-decoration: none;
\t \t color: #FFF;
\t }
\t #moto{
\t \t text-align: center;
\t \t color: #FFF;
\t }
\t #moto{
\t \t border-style: solid;
\t \t border-width: 2px;
\t \t border-top: none;
\t \t border-left: none;
\t \t border-right: none;
\t \t border-color: #FFF;
\t \t font: 28px/1.2em 'Felipa', cursive;
\t }
\t #description{
\t \t color: #FFF;
\t \t text-align: justify;
\t \t margin-left: 9em;
\t \t margin-right: 2em;
\t \t padding-top: 1.5em;
\t \t width: 65%;
\t \t font: 22px/1.625em 'Felipa', cursive;
\t }
\t #footer{
\t \t height: 30px;
\t \t color: #FFF;
\t \t text-align: center;
\t \t margin-top: 2em;
\t \t font: 15px/1.625em 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t .map_canvas {
\t \t width: 450px;
\t \t height: 300px;
\t \t margin-left: 15em;
\t \t margin-top: 3em;
\t \t margin-bottom: 5em;
\t }
\t #mobile{
\t \t display:none;
\t }
\t #links img{
\t \t width: 100px;
\t \t height: 100px;
\t \t margin-top: 3.5em;
\t \t margin-left: 2em;
\t }
\t #tittle{
\t \t font: 18px 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #tittle p{
\t \t font: 13px 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #links{
\t \t width: 80%;
\t \t float: right;
\t }
}
@media (min-width: 599px) and (max-width: 768px){
\t body{
\t background: url(images/florence2.jpg) no-repeat center center fixed;
\t -webkit-background-size: cover;
\t -moz-background-size: cover;
\t -o-background-size: cover;
\t background-size: cover;
}
.navbar-default .navbar-nav>li>a {
color: #FFFFFF;
}
.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
color: #FFF;
background-color: transparent;
}
\t #left{
\t \t height: 100%;
\t \t width: 100%;
\t \t /*float: left;*/
\t \t /*background-color: rgb(255,153,0);*/
\t \t background-image: url(images/background.png);
\t \t -webkit-background-size: cover;
\t \t -moz-background-size: cover;
\t \t -o-background-size: cover;
\t \t background-size: cover;
\t \t margin-left: auto;
\t \t margin-top: 5%;
\t \t margin-right: auto;
\t \t
\t }
\t .logo img{
\t \t height: 16em;
\t \t width: 100%;
\t \t display: block;
\t \t margin-left: auto;
\t \t margin-right: auto;
\t }
\t #sidebar{
\t \t width: 10em;
\t \t height: 20em;
\t \t /*margin-left: 15px;*/
\t \t margin-top: 40px;
\t \t line-height: 30px;
\t \t clear: both;
\t \t float: left;
\t \t /*color: #ba2817;*/
\t }
\t #side{
\t \t /*font: 22px/1.7em "Lucida Calligraphy",Helvetica,Arial,sans-serif;*/
\t \t color: #FFF;
\t \t text-align: left;
\t }
\t #sidebar li{
\t \t list-style-type: none;
\t \t border-bottom: 1px;
\t \t border-bottom-width: 1px;
\t \t border-bottom-style: solid;
\t \t /*border-bottom-color: rgb(52, 52, 52);*/
\t \t border-bottom-color: rgb(255,255,255);
\t \t text-align: left;
\t \t font: 15px/2 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #address{
\t \t width: 29%;
\t \t margin-left: 5em;
\t \t color: #FFF;
\t \t list-style: none;
\t \t display: inline-block;
\t }
\t #hours{
\t \t width: 30%;
\t \t margin-left: 5em;
\t \t color: #FFF;
\t \t list-style: none;
\t \t float: right;
\t \t display: inline-block;
\t }
\t #menu li{
\t \t list-style-type: none;
\t \t /*font-size: 15px; */
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t \t color: #FFF;
\t \t margin-left: 7em;
\t \t text-align: center;
\t }
\t #menu h3{
\t \t text-decoration: underline;
\t \t font-size: 20px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #menu p{
\t \t margin-bottom: 0px;
\t \t padding-top: 8px;
\t \t font-size: 20px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #menu #sub {
\t \t margin-top: 0px;
\t \t padding-top: 0px;
\t \t font-size: 16px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #social li{
\t \t text-decoration:none;
\t \t border:none;
\t \t display: inline-block;
\t }
\t #social{
\t \t text-align: center;
\t }
\t #mobsocial{
\t \t
\t \t display: none;
\t \t
\t }
\t a:link {
\t \t text-decoration: none;
\t \t color: #FFF;
\t }
\t a:visited {
\t \t text-decoration: none;
\t \t color: #FFF;
\t }
\t a:hover {
\t \t text-decoration: none;
\t \t color: #FFF;
\t }
\t a:active {
\t \t text-decoration: none;
\t \t color: #FFF;
\t }
\t #moto{
\t \t text-align: center;
\t \t color: #FFF;
\t }
\t #moto{
\t \t border-style: solid;
\t \t border-width: 2px;
\t \t border-top: none;
\t \t border-left: none;
\t \t border-right: none;
\t \t border-color: #FFF;
\t \t font: 24px/1em 'Felipa', cursive;
\t }
\t #description{
\t \t color: #FFF;
\t \t text-align: justify;
\t \t margin-left: 9em;
\t \t margin-right: 2em;
\t \t padding-top: 1.5em;
\t \t width: 65%;
\t \t font: 22px/1.6em 'Felipa', cursive;
\t }
\t #footer{
\t \t height: 30px;
\t \t color: #FFF;
\t \t text-align: center;
\t \t margin-top: 2em;
\t \t font: 13px 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t .map_canvas {
\t \t width: 350px;
\t \t height: 200px;
\t \t margin-left: 15em;
\t \t margin-top: 3em;
\t \t margin-bottom: 5em;
\t }
\t #mobile{
\t \t display:none;
\t }
\t #links img{
\t \t width: 100px;
\t \t height: 100px;
\t \t margin-top: 3.5em;
\t \t margin-left: 2em;
\t }
\t #tittle{
\t \t font: 14px 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #links{
\t \t width: 80%;
\t \t float: right;
\t }
\t .navbar-collapse {
padding-right: 15px;
padding-left: 45px;
overflow-x: visible;
-webkit-overflow-scrolling: touch;
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.navbar-default .navbar-collapse, .navbar-default .navbar-form{
border-color: transparent; \t
}
}
@media (min-width: 320px) and (max-width: 598px){
\t html{
\t \t min-height: 100%;
\t }
\t body{
\t background: url(images/florence3.jpg) no-repeat center center fixed;
\t -webkit-background-size: cover;
\t -moz-background-size: cover;
\t -o-background-size: cover;
\t background-size: cover;
\t height: 100%;
\t
}
.navbar-default .navbar-collapse, .navbar-default .navbar-form {
border-color: transparent;
}
.navbar-collapse{
\t clear: both;
}
.navbar-default .navbar-nav>li>a {
color: #FFFFFF;
}
.nav>li>a {
padding: 0px 0px;
}
.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
color: #FFF;
background-color: transparent;
}
.navbar-collapse .in {
padding-left: 45px;
}
ul{
position: relative;
z-index: 1;
}
\t #left{
\t \t /*height: 100%;*/
\t \t width: 100%;
\t \t /*float: left;*/
\t \t /*background-color: rgb(255,153,0);*/
\t \t background-image: url(images/background.png);
\t \t -webkit-background-size: cover;
\t \t -moz-background-size: cover;
\t \t -o-background-size: cover;
\t \t background-size: cover;
\t \t margin-left: auto;
\t \t margin-top: 5%;
\t \t margin-right: auto;
\t \t
\t }
\t .logo img{
\t \t height: 90px;
\t \t width: 100%; \t
\t \t margin-left: auto;
\t \t margin-right: auto;
\t \t
\t }
\t #sidebar{
\t \t
\t \t width: 98%;
\t \t height: 100%;
\t \t /*margin-top: 40px;
\t \t line-height: 30px;
\t \t clear: both;
\t \t float: left;*/
\t \t
\t \t
\t }
\t #side{
\t \t color: #FFFFFF;
\t \t width: 100%;
\t \t
\t \t
\t }
\t
\t ul.side{
\t \t padding-left: 0px;
\t \t text-align: center;
\t }
\t .side li:before{
\t \t /*content: "/ ";
\t \t color: #FFF;*/
\t }
\t .side li:first-child:before{
\t \t content: " ";
\t }
\t #sidebar li{
\t \t margin-top: 1em;
\t \t /*display: inline-block;*/
\t \t display: list-item;
\t \t text-decoration: none;
\t \t font: 16px 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif; \t
\t }
\t #moto{
\t \t border-style: solid;
\t \t border-width: 0.1em;
\t \t border-top: none;
\t \t border-left: none;
\t \t border-right: none;
\t \t border-color: #FFF;
\t \t font: 16px/0.1em 'Felipa', cursive;
\t \t
\t }
\t #description{
\t \t color: #FFF;
\t \t text-align: justify;
\t \t width: 96%;
\t \t margin-left: auto;
\t \t margin-right: auto;
\t \t margin-top: 0.5em;
\t \t font: 16px/1.3em 'Felipa', cursive;
\t \t
\t \t
\t \t
\t }
\t
\t #address{
\t \t width: 45%;
\t \t margin-top: 0.8em;
\t \t margin-left: 1em;
\t \t color: #FFF;
\t \t list-style: none;
\t \t display: inline-block;
\t \t font-size: 9px;
\t \t float: left;
\t }
\t #hours{
\t \t width: 35%;
\t \t color: #FFF;
\t \t list-style: none;
\t \t float: right;
\t \t display: inline-block;
\t \t font-size: 9px;
\t \t padding-right: 0px;
\t \t
\t }
\t #menu li{
\t \t list-style-type: none;
\t \t /*font-size: 15px; */
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t \t color: #FFF;
\t \t /*margin-left: 7em;*/
\t \t text-align: center;
\t \t
\t }
\t #menu h3{
\t \t text-decoration: underline;
\t \t padding-top: 0.3em;
\t \t font-size: 17px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t \t text-align: center;
\t }
\t #menu #fh3{
\t \t text-decoration: underline;
\t \t padding-top: 1.8em;
\t \t font-size: 17px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t \t text-align: center;
\t }
\t #menu p{
\t \t margin-bottom: 0px;
\t \t padding-top: 8px;
\t \t font-size: 15px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #menu ul{
\t \t padding-left: 0px;
\t }
\t #menu #sub {
\t \t margin-top: 0px;
\t \t padding-top: 0px;
\t \t font-size: 10px;
\t \t font-family: 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t #social li{
\t \t display: none;
\t \t /*text-decoration:none;
\t \t border:none;
\t \t display: inline-block;
\t \t float: right;
\t \t margin-left: 3px;
\t \t list-style-type: none;
\t \t */
\t }
\t #social{
\t \t display: none;
\t \t /*
\t \t text-align: center;
\t \t */
\t }
\t #mobsocial li{
\t \t
\t \t text-decoration:none;
\t \t border:none;
\t \t display: inline-block;
\t \t margin-left: 10px;
\t \t list-style-type: none;
\t \t
\t \t
\t }
\t #mobsocial{
\t \t
\t \t text-align: center;
\t \t
\t }
\t ul#mobsocial{
\t \t padding-left: 0px;
\t }
\t a:link {
\t \t text-decoration: none;
\t \t color: #FFFFFF;
\t }
\t a:visited {
\t \t text-decoration: none;
\t \t color: #FFFFFF;
\t }
\t a:hover {
\t \t text-decoration: none;
\t \t color: #FFFFFF;
\t }
\t a:active {
\t \t text-decoration: none;
\t \t color: #FFFFFF;
\t }
\t #moto{
\t \t
\t \t text-align: center;
\t \t color: #FFF;
\t }
\t #footer{
\t \t height: 5em;
\t \t color: #FFF;
\t \t text-align: center;
\t \t margin-top: 2em;
\t \t font: 10px 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t .map_canvas {
\t \t width: 250px;
\t \t height: 200px;
\t \t margin-left: auto;
\t \t margin-right: auto;
\t }
\t #desktop{
\t \t display:none;
\t }
\t #links img{
\t \t width: 45px;
\t \t height: 45px;
\t \t margin-top: 10px; \t \t
\t \t margin-left: 1em;
\t }
\t #tittle{
\t \t font: 11px 'Yanone Kaffeesatz', Helvetica,Arial,sans-serif;
\t }
\t
\t #links{
\t \t margin-top: 3em;
\t \t margin-left: 1em;
\t }
}
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
* Remove default margin.
*/
body {
margin: 0;
}
/* HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined for any HTML5 element in IE 8/9.
* Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
* Correct `block` display not defined for `main` in IE 11.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
/**
* 1. Correct `inline-block` display not defined in IE 8/9.
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
*/
audio,
canvas,
progress,
video {
display: inline-block; /* 1 */
vertical-align: baseline; /* 2 */
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address `[hidden]` styling not present in IE 8/9/10.
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
*/
[hidden],
template {
display: none;
}
/* Links
========================================================================== */
/**
* Remove the gray background color from active links in IE 10.
*/
a {
background: transparent;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* Text-level semantics
========================================================================== */
/**
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* Embedded content
========================================================================== */
/**
* Remove border when inside `a` element in IE 8/9/10.
*/
img {
border: 0;
}
/**
* Correct overflow not hidden in IE 9/10/11.
*/
svg:not(:root) {
overflow: hidden;
}
/* Grouping content
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari.
*/
figure {
margin: 1em 40px;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Contain overflow in all browsers.
*/
pre {
overflow: auto;
}
/**
* Address odd `em`-unit font size rendering in all browsers.
*/
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
/* Forms
========================================================================== */
/**
* Known limitation: by default, Chrome and Safari on OS X allow very limited
* styling of `select`, unless a `border` property is set.
*/
/**
* 1. Correct color not being inherited.
* Known issue: affects color of disabled elements.
* 2. Correct font properties not being inherited.
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
*/
button,
input,
optgroup,
select,
textarea {
color: inherit; /* 1 */
font: inherit; /* 2 */
margin: 0; /* 3 */
}
/**
* Address `overflow` set to `hidden` in IE 8/9/10/11.
*/
button {
overflow: visible;
}
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
* Correct `select` style inheritance in Firefox.
*/
button,
select {
text-transform: none;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
input {
line-height: normal;
}
/**
* It's recommended that you don't attempt to style these elements.
* Firefox's implementation doesn't respect box-sizing, padding, or width.
*
* 1. Address box sizing set to `content-box` in IE 8/9/10.
* 2. Remove excess padding in IE 8/9/10.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
* Safari (but not Chrome) clips the cancel button when the search input has
* padding (and `textfield` appearance).
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct `color` not being inherited in IE 8/9/10/11.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/**
* Remove default vertical scrollbar in IE 8/9/10/11.
*/
textarea {
overflow: auto;
}
/**
* Don't inherit the `font-weight` (applied by a rule above).
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
*/
optgroup {
font-weight: bold;
}
/* Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width" />
<title>Firenze Trattoria</title>
<link rel="stylesheet" href="bootstrap-3.3.6-dist/css/bootstrap.min.css">
<link rel="shortcut icon" href="images/Logo.ico">
<link href='http://fonts.googleapis.com/css?family=Felipa' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).bind('mobileinit',function(){
$.mobile.pushStateEnabled = false;
});
</script>
<script src="jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script type="text/javascript" src="bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>
</head>
<body >
<div class="container">
<div id="left">
<div class="logo">
<img src="images/Logo.png">
</div>
<div id="moto">
</div>
<div id="sidebar" data-toggle="dropdown" data-target=".user-dropdown" >
<nav class = "navbar navbar-default" role = "navigation" style="background-color:transparent; border:none;">
<div class = "navbar-header">
<button type = "button" class = "navbar-toggle pull-left"
data-toggle = "collapse" data-target = "#navbar-collapse" style="background-color:black; margin-left: 43px;">
<span class = "icon-bar"></span>
<span class = "icon-bar"></span>
<span class = "icon-bar"></span>
</button>
<!--<a class = "navbar-brand" href = "#">Menu</a> -->
</div>
<div class="collapse navbar-collapse" id = "navbar-collapse">
<ul class="side nav navbar-nav">
<li><a href="index.html">About</a></li>
<li><a href="Menu.html">Menu</a></li>
<li>
<a href="RestaurantWeekMenu.html">
<div style="line-height:20px">Restaurant Week Menu</div>
</a>
</li>
<!--<li><a href="Wine.html">Wine</a></li>-->
<li><a href="Gallery.html">Gallery</a></li>
<li><a href="Directions.html">Directions and Gift Cards</a></li>
</ul>
</div>
</nav>
</div>
<div id="description">
<p>
</p>
</div>
<div id="footer">
<div>
<ul id="mobsocial">
<li ><a href="http://www.tripadvisor.com/Restaurant_Review-g60954-d5498230-Reviews-Firenze_Trattoria_Salem-Salem_Massachusetts.html" target="blank"><img width="20px" height="20px" src="images/tripadvisor-icon.png"></a></li>
<li ><a href="http://www.foursquare.com/v/firenze-trattoria/5245ed6811d2bfaa1b282bd5" target="blank"><img width="20px" height="20px" src="images/foursquare.png"></a></li>
<li ><a href="http://www.yelp.com/biz/firenze-trattoria-salem" target="blank"><img width="20px" height="20px" src="images/yelp.png"></a></li>
<li ><a href="https://www.facebook.com/firenzesalem" target="blank"><img width="20px" height="22px" src="images/facebook.png"></a></li>
</ul>
</div>
</div>
</div>
</div>
<!--main container-->
</body>
</html>
看起來你需要啓動一個簡單的本地服務器,所以你將訪問它作爲127.0.0.1或本地主機,而不是文件:/// ... –
我已經嘗試了這兩個建議,它仍然沒有'工作。 – tironci