小编ner*_*jma的帖子

如何使用CSS在两个圆之间绘制水平线?

如何在CSS中的2个圆之间绘制水平线?

它必须位于它们的中间,如屏幕截图所示.

这里的例子:

在此输入图像描述

我绘制了2个圆圈,但不知道如何连接它们.

#status-buttons a {
  color: black;
  display: inline-block;
  font-size: 17px;
  font-weight: normal;
  margin-right: 0;
  text-align: center;
  text-transform: uppercase;
  min-width: 150px;
  text-decoration: none;
}
#status-buttons a:hover {
  text-decoration: none;
}
#status-buttons a.active span {
  color: white;
  background: #ACCF5B;
  box-shadow: rgba(0, 0, 0, 0.792157) 3px 3px 3px 0;
}
#status-buttons span {
  color: white;
  background: #22bacb;
  display: block;
  height: 45px;
  margin: 0 auto 10px;
  padding-top: 20px;
  width: 60px;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.792157) 3px 3px 3px 0; …
Run Code Online (Sandbox Code Playgroud)

html css css3 css-shapes

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

仅当使用unity DI回收应用程序池时,webapi调用才会失败

我正在调用Web api服务,该服务只会在我第一次回收应用程序池时才会失败。之后,所有通话均正常。

这个过程就是这样。

致电服务->返回确定

致电服务->返回确定

致电服务->返回确定

转到iis并回收应用程序池(我等待10秒)

呼叫服务->发生内部服务器错误。请稍后再试。

致电服务->返回确定

致电服务->返回确定

致电服务->返回确定

...转到iis并回收应用程序池(我等待10秒钟)呼叫服务->发生内部服务器错误。请稍后再试。

致电服务->返回确定

致电服务->返回确定

致电服务->返回确定

...

客户端是使用此方法的控制台应用程序框架4.0:

        public static object Send(string webAddr, object param)
        {
            HttpUtil.IgnoreBadCertificates();

            HttpWebRequest request = null;
            object result = null;

            request = (HttpWebRequest)WebRequest.Create(webAddr);
            request.ContentType = "application/json; charset=utf-8";
            request.Method = "POST";
            request.Accept = "application/json";

            String u = GetString(a1);
            String p = GetString(a1) + GetString(a2);

            String encoded = System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(u + ":" + p));
            request.Headers.Add("Authorization", "Basic " + encoded);

            using (var streamWriter = new StreamWriter(request.GetRequestStream()))
            {
                var myJsonString = …
Run Code Online (Sandbox Code Playgroud)

c# unity-container asp.net-web-api asp.net-web-api2

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