为什么引导类:警告,错误,成功和信息不能在以下代码中工作? [英] Why do the bootstrap classes:warning,error,success and info donot work in the following code?
问题描述
<!DOCTYPE html>
<! - [if IE 8]> < html lang =enclass =ie8> <![endif] - >
<! - [if!IE]><! - > < html lang =en> <! - <![endif] - >
< head>
< meta charset =utf -8>
< title> Bootstrap< / title>
< meta name =descriptioncontent =>
< meta name =authorcontent =>
<! - 移动特定元 - >
< meta name =viewportcontent =width = device-width,initial-scale = 1,maximum-scale = 1>
< ; - - 样式表 - >
< link rel =stylesheethref =css / bootstrap.css/>
< link rel = stylesheethref =css / bootstrap-responsive.css/>
< link rel =stylesheethref =css / custom.css/>
<! - [if lt IE 9]>
< script src =http://html5shim.googlecode.com/svn/ trunk / html5.js>< / script>
<![endif] - >
< / head>
< body>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Bootstrap</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Stylesheets -->
<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.css" />
<link rel="stylesheet" href="css/custom.css" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
Y OHO!
< button class =btn> OHOY!< / button>
< input type =textclass =btnplaceholder =输入文字/>
< input type =submitclass =btnvalue =输入提交/ >
特别信息
sd
sadasd
sadsad
YOHO!
<button class="btn">OHOY!</button>
<input type="text" class="btn" placeholder="Input text" />
<input type="submit" class="btn" value="Input submit" />
Special info
sd
sadasd
sadsad
<! - JavaScript - >
< script src =http://code.jquery.com/jquery-1.9.1.min.js>< / script>
< script src =js / bootstrap.js >< / script>
< / body>
< / html>
<!-- JavaScript -->
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
推荐答案
这篇关于为什么引导类:警告,错误,成功和信息不能在以下代码中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!