小编cho*_*jan的帖子

剪辑路径不适用于Firefox,IE或Edge

我正在使用旋转木马显示带有一些内容的图像.为了显示图像,我正在使用剪辑路径.它在Chrome中完美展现,但在IE,Edge或Firefox中无效.

.carousel-inner>.item>a>img,
.carousel-inner>.item>img,
.img-responsive,
.thumbnail a>img,
.thumbnail>img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

body {
  background-image: url('../../Images/Plain-BG.PNG');
  background-size: cover;
  background-repeat: no-repeat;
  font-family: Kamban !important;
}

footer {
  background-image: url(../../Images/DT-Logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
  position: absolute;
  right: 10%;
  top: 85%;
  width: 100%;
  padding-top: 5%;
}

.news-img {
  width: 42.5%;
  margin-top: 13%;
  clip-path: polygon(6% 4%, 94% 11%, 94% 91%, 5% 92%);
  margin-left: 8.5%;
}

.title {
  margin: 0px;
  width: 40%;
  position: absolute;
  top: 43%;
  height: auto;
  left: 57%; …
Run Code Online (Sandbox Code Playgroud)

html javascript css firefox internet-explorer

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

从vuforia服务器获取未经授权的错误(401)

我试图在C#代码中实现vuforia api.

我从服务器收到错误.

C#代码:

ASCIIEncoding Encoding = new ASCIIEncoding();
MD5 md5 = MD5.Create();
string requestPath = "/targets";
string serviceURI = "https://vws.vuforia.com"+ requestPath;
string httpVerb = "GET";
var contentMD5bytes = md5.ComputeHash(Encoding.GetBytes(""));
string contentMD5 = BitConverter.ToString(contentMD5bytes).Replace("-", "");
string contentType = "";
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
string date = string.Format("{0:r}", DateTime.Now.ToUniversalTime());
string StringToSign = String.Format("{0}\n{1}\n{2}\n{3}\n{4}", httpVerb, contentMD5, contentType, date, requestPath); // HTTP-Verb, Content-MD5, Content-Type, Date, Request-Path;
HMACSHA1 sha1 = new HMACSHA1(System.Text.Encoding.ASCII.GetBytes(secretKey));
byte[] sha1Bytes = Encoding.GetBytes(StringToSign);
MemoryStream stream = new MemoryStream(sha1Bytes);
byte[] …
Run Code Online (Sandbox Code Playgroud)

c# api vuforia vuforia-cloud-recognition

10
推荐指数
0
解决办法
435
查看次数