简体   繁体   English

为什么引导程序在 eclipse 中不起作用?

[英]Why bootstrap does not work in eclipse?

Why bootstrap does not work ?为什么引导程序不起作用? I download the folders from site and I add it in the root of the WebContent like WebContent/bootstrap/css..js..fonts我从站点下载文件夹,并将其添加到 WebContent 的根目录中,如 WebContent/bootstrap/css..js..fonts

The jsp looks like this jsp看起来像这样

<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet"
    href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link href='http://fonts.googleapis.com/css?family=Roboto'
    rel='stylesheet' type='text/css'>
<title>Comment Box</title>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"
    type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

    <div class="row" id="featuresheading">
        <div class="col-lg-12">
            <div class="table-responsive">
                <table class="table ta................etc

but why the table does not appear as it suposed?但是为什么表格没有像它那样出现呢? please help请帮忙

Try a full publish to get your bootstrap files into your application server.尝试完全发布以将引导程序文件放入应用程序服务器。
I got bootstrap to work in a .jsp in Eclipse.我得到了引导程序在 Eclipse 中的 .jsp 中工作。 Here's my configuration:这是我的配置:

WebContent 文件夹中的引导程序

Here's the markup in the .jsp...这是 .jsp 中的标记...

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Test Bootstrap</title>
<link href="bootstrap-3.3.6/dist/css/bootstrap.css" rel="stylesheet"
    type="text/css" />
</head>
<body>
    <div class="container">
        <h1>Test Bootstrap</h1>
        <table class="table table-striped">
            <tr>
                <td>Bootstrap</td>
            </tr>
            <tr>
                <td>is working</td>
            </tr>
        </table>
    </div>
</body>
</html>`

`You don't need to reference bootstrap two times. `您不需要两次引用引导程序。 Just pick the full or the minified version.只需选择完整版或缩小版即可。 Good luck.祝你好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM