小编sta*_*are的帖子

带固定包装的Bootstrap网格 - 防止列堆叠

正如标题所说,我正在尝试使用带有固定包装器的Bootstrap 3网格系统.但是当我调整浏览器的大小时,即使包装器保持相同的大小,列也会堆叠起来?

顺便说一句:我正在使用版本3,这样我可以在移植网站后转移到响应式布局.(这是巨大的,我一个人,所以一步一步是唯一的选择...)

    <!DOCTYPE html>
    <html>
      <head>
        <title>Bootstrap 101 Template</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Bootstrap -->
        <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="../../assets/js/html5shiv.js"></script>
          <script src="../../assets/js/respond.min.js"></script>
        <![endif]-->

        <style>
                /* Custom container */
                .container-fixed {
                  margin: 0 auto;
                  max-width: 800px;
                  min-width: 800px;
                  width: 800px;
                                      background-color:#C05659;
                }
                .container-fixed > hr {
                  margin: 30px 0;
                }
        </style>
      </head>
      <body>
            <div class="container-fixed">
                <div class="row">
                  <div class="col-md-4">.col-md-4</div>
                  <div class="col-md-4">.col-md-4</div> …
Run Code Online (Sandbox Code Playgroud)

css grid web-deployment twitter-bootstrap twitter-bootstrap-3

22
推荐指数
1
解决办法
5万
查看次数

Visual Studio和Knockout.js - 捆绑,缩小和约定

我正在使用ASP.NET MVC4和Visual Studio进行捆绑和缩小.

惯例说:

  • 当存在"FileX.min.js"和"FileX.js"时,选择".min"文件进行发布.
  • 选择非".min"版本进行调试.
  • 忽略仅由IntelliSense使用的"-vsdoc"文件(例如jquery-1.6.2-vsdoc.js).

问题是debug.js扩展也完全被忽略了,当我通过NuGet使用knockout和knockout映射时,这些扩展都带有这些扩展.所以即使在调试模式下我总是得到缩小版本?

我可以将文件从.debug.js重命名为.min.js以获得调试模式下的非缩小版本,但是不会通过nuget中断更新功能吗?

是否有.debug.js文件的解决方案?

asp.net visual-studio asp.net-mvc-4 asp.net-optimization

5
推荐指数
1
解决办法
1189
查看次数

经典 ASP - 自定义错误页面

我使用 IIS7 全新安装了 Windows Server 2008。在那里,我安装了“Classic ASP”并将调试选项“Send Errors To Browser”更改为 True。

1.

我创建了一个包含 2 个文件的目录:

-- C:\inetpub\wwwroot\stadtbibliothek
 - index.asp -> <% Response.Write "Hello World" %>
 - 500-100.asp -> <% Response.Write "Error" %>
Run Code Online (Sandbox Code Playgroud)

我将目录转换为应用程序并分配了我创建的应用程序池(.net 版本:无托管代码,管道代码:经典)。

然后我从远程客户端 ( http://svr-name.domain/stadtbibliothek/ )测试了页面,“Hello World”出现了。

2.

我向 index.asp 文件和 web.config 文件添加了一个错误到“stadtbibliothek”文件夹(根目录中没有):

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <add value="index.asp" />
            </files>
        </defaultDocument>
                <httpErrors>
                    <remove statusCode="500" subStatusCode="100" />
                    <error statusCode="500" subStatusCode="100" prefixLanguageFilePath="" path="/error.asp" responseMode="ExecuteURL" />
                </httpErrors>
    </system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)

解决方案:

结果我只需要在路径中包含文件夹名称:

<error statusCode="500" subStatusCode="100" prefixLanguageFilePath="" path="/stadtbibliothek/error.asp" responseMode="ExecuteURL" …

iis-7 custom-error-pages asp-classic

5
推荐指数
1
解决办法
5677
查看次数