小编jac*_*ier的帖子

如何在CSS中制作半方形背景

方形切成两半对角线

是否有可能在纯粹的CSS背景中制作像图像上的半正方形.我知道它可以用图像作为背景来完成,但我需要使用5种不同的颜色,并且将来可能会改变颜色.

css css-shapes

8
推荐指数
2
解决办法
8673
查看次数

Bootstrap Carousel Multi Items一次移动一个项目

我试图使用bootstrap创建多个项目轮播.我的问题是它将所有3个项目移动到1而不是一个.请在此处查看演示:

http://plnkr.co/edit/Fl0HZaU5x5ZkPEVo87u3?p=preview

  $('#myCarousel').carousel({
    interval: 10000
  })
  console.log($('.item'))
  $('.item').each(function() {

    var next = $(this).next();
    console.log(next);
    if (!next.length) {
      next = $(this).siblings(':first');
    }
    next.children(':first-child').clone().appendTo($(this));

    if (next.next().length > 0) {
      next.next().children(':first-child').clone().appendTo($(this));
    } else {
      $(this).siblings(':first').children(':first-child').clone().appendTo($(this));
    }
  });
Run Code Online (Sandbox Code Playgroud)

twitter-bootstrap twitter-bootstrap-3

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

Angular Bootstrap Datepicker更改月份事件

当用户使用UI Bootstrap 1.3在datepicker日历上更改月份时,我需要致电后端。

datepicker angularjs angular-ui-bootstrap

4
推荐指数
1
解决办法
1999
查看次数

WebAPI自动进行身份验证所需的弹出窗口

Webapi响应状态码401时,如何禁用“需要身份验证”弹出窗口?


在此处输入图片说明


那是我的webapi配置

public static class WebApiConfig
{
    public static void Register(HttpConfiguration config)
    {
        // Web API configuration and services

        // Web API routes
        config.MapHttpAttributeRoutes();
        config.SuppressDefaultHostAuthentication();
        config.Filters.Add(new HostAuthenticationFilter(Startup.OAuthOptions.AuthenticationType));

        config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html"));
        config.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
        //config.Formatters.JsonFormatter.SerializerSettings.Formatting = Newtonsoft.Json.Formatting.Indented;
        config.Formatters.JsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();

        config.Routes.MapHttpRoute(
            name: "DefaultApi",
            routeTemplate: "api/{controller}/{id}",
            defaults: new { id = RouteParameter.Optional }
        );
    }
}
Run Code Online (Sandbox Code Playgroud)

asp.net authentication asp.net-mvc asp.net-web-api asp.net-web-api2

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