【问题标题】:Bootstrap 3 elements are not showing ASP.NET MVC 5Bootstrap 3 元素未显示 ASP.NET MVC 5
【发布时间】:2014-10-05 17:20:12
【问题描述】:

当我将 bootstrap 3 'thumbnail' 项目添加到我的 div 的类中时,它不会显示。这是我的确切 CSS3 标记。 jumbotron 也是如此。

.thumbnail {
  display: block;
  padding: 4px;
  width: 500px;
  height: 220px;
  margin-bottom: 20px;
  line-height: 1.42857143;
  background-color: #3f0070;
  border: 1px solid #ddd;
  border-radius: 4px;
  -webkit-transition: all .2s ease-in-out;
       -o-transition: all .2s ease-in-out;
          transition: all .2s ease-in-out;
}


<div class="container">
    <div class="row">
        <div class="col-xs-6 col-md-3">
            <a href="#" class="thumbnail">
                <img src="~/images/photo.png" alt="...">
            </a>
        </div>
    </div>

【问题讨论】:

  • 请发布您正在使用的确切html以及css

标签: css twitter-bootstrap-3 asp.net-mvc-5


【解决方案1】:

Bootstrap 3 依赖文件存在错误。我使用 Nuget 包管理器重新安装。现在,一切都恢复了默认。谢谢。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-28
    • 2021-07-01
    • 2023-03-30
    • 2011-07-26
    • 2015-10-28
    • 1970-01-01
    • 2023-01-17
    • 1970-01-01
    相关资源
    最近更新 更多