【问题标题】:CSS Triangle Grainy and Jagged in ChromeChrome中的CSS三角形颗粒状和锯齿状
【发布时间】:2015-09-02 21:54:44
【问题描述】:

我添加了以下代码的小提琴。我正在尝试制作一个带有边框的橙色三角形,但边框在 Chrome 中显示为锯齿状。有没有人有任何见解?我在下面添加了小提琴。在评论中

 <div class="slideshow-overlay-wrapper cssNip">
</div>

.cssNip {
  padding-bottom: 50px;
  position: relative;
}

.cssNip:before {
  border-left: 1000px solid #fff;
  border-right: 75px solid transparent;
  right: 50%;
}

.cssNip:after {
  border-left: 75px solid transparent;
  border-right: 1000px solid #fff;
  left: 50%;
}

.cssNip:after, .cssNip:before {
  border-bottom: 50px solid #fff;
  bottom: 0;
  content: "";
  position: absolute;
  width: 50%;
  z-index: 100;
}
.slideshow-overlay-wrapper {
    display: table;
    width: 100%;
    table-layout: fixed;
    border: none;
    background-color: #cb751b;
    margin-top: -1px;
    padding-top: 12px;
}

【问题讨论】:

标签: html css google-chrome cross-browser border


【解决方案1】:
.cssNip:after, .cssNip:before {
  border-bottom: 50px solid #fff;
  bottom: 0;
  content: "";
  position: absolute;
  width: 50%;
  z-index: 100;
  transform:scale(.99999);
}

这很傻。谢谢您的帮助。

【讨论】:

    猜你喜欢
    • 2012-11-26
    • 2014-12-04
    • 1970-01-01
    • 2014-07-14
    • 1970-01-01
    • 1970-01-01
    • 2011-12-24
    • 2015-05-02
    • 2012-06-18
    相关资源
    最近更新 更多