2016-10-22 70 views
-1

我一直在寻找了上bootswatch这种风格:https://bootswatch.com/simplex/ASP.NET引导错误显示

,尤其是看了造型形式,喜欢这里:

Style as shown on bootswatch.com

但当我添加代码,您点击位于bootswatch上右侧的红色小图标,进入我的网站,看起来像这样:

Wrong Display

因此,文本标签和输入框在它们之间有一个换行符,没有显示一个较暗的阴影背景框,而其他东西也没有对齐。这是怎么回事?

这是我的整个页面的代码:

@model WebProto.ViewModels.NewChartConfigViewModel 
@using MaschinenModell; 

@{ 
    ViewBag.Title = "Neues Diagramm"; 
    Layout = "~/Views/Shared/_Layout.cshtml"; 
} 

<form class="form-horizontal"> 
    <fieldset> 
     <legend>Legend</legend> 
     <div class="form-group"> 
      <label for="inputEmail" class="col-lg-2 control-label">Email</label> 
      <div class="col-lg-10"> 
       <input type="text" class="form-control" id="inputEmail" placeholder="Email"> 
      </div> 
     </div> 
     <div class="form-group"> 
      <label for="inputPassword" class="col-lg-2 control-label">Password</label> 
      <div class="col-lg-10"> 
       <input type="password" class="form-control" id="inputPassword" placeholder="Password"> 
       <div class="checkbox"> 
        <label> 
         <input type="checkbox"> Checkbox 
        </label> 
       </div> 
      </div> 
     </div> 
     <div class="form-group"> 
      <label for="textArea" class="col-lg-2 control-label">Textarea</label> 
      <div class="col-lg-10"> 
       <textarea class="form-control" rows="3" id="textArea"></textarea> 
       <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span> 
      </div> 
     </div> 
     <div class="form-group"> 
      <label class="col-lg-2 control-label">Radios</label> 
      <div class="col-lg-10"> 
       <div class="radio"> 
        <label> 
         <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked=""> 
         Option one is this 
        </label> 
       </div> 
       <div class="radio"> 
        <label> 
         <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"> 
         Option two can be something else 
        </label> 
       </div> 
      </div> 
     </div> 
     <div class="form-group"> 
      <label for="select" class="col-lg-2 control-label">Selects</label> 
      <div class="col-lg-10"> 
       <select class="form-control" id="select"> 
        <option>1</option> 
        <option>2</option> 
        <option>3</option> 
        <option>4</option> 
        <option>5</option> 
       </select> 
       <br> 
       <select multiple="" class="form-control"> 
        <option>1</option> 
        <option>2</option> 
        <option>3</option> 
        <option>4</option> 
        <option>5</option> 
       </select> 
      </div> 
     </div> 
     <div class="form-group"> 
      <div class="col-lg-10 col-lg-offset-2"> 
       <button type="reset" class="btn btn-default">Cancel</button> 
       <button type="submit" class="btn btn-primary">Submit</button> 
      </div> 
     </div> 
    </fieldset> 
</form> 

回答

0

好吧我太傻翻转。因为我显示了我在Internet Explorer中创建的网页。我的错! :D

Firefox,Opera和Chrome将其正确显示。