【问题标题】:How I Can Design With Css [closed]我如何使用 Css 进行设计 [关闭]
【发布时间】:2019-02-25 10:25:09
【问题描述】:

我想做以下设计。
我使用了 HTML 图形,但没有用。
我怎样才能使用csshtml


【问题讨论】:

标签: javascript jquery html css


【解决方案1】:

.new_site_ribbon {
  position: absolute;
  right: 50px;
  height: 20px;
  background: #C5BBD4;
  background: -webkit-linear-gradient(top left, #C5BBD4, #FC9D96);
  background: -moz-linear-gradient(top left, #C5BBD4, #FC9D96);
  background: linear-gradient(top left, #C5BBD4, #FC9D96);
  padding: 0 5px;
}

.new_site_ribbon:before {
  content: "";
  width: 0;
  height: 0;
  border-width: 10px 5px;
  border-style: solid;
  border-color: rgba(164, 157, 218, 0.65) rgba(164, 157, 218, 0.65) rgba(164, 157, 218, 0.65) transparent;
  position: absolute;
  left: -10px;
}

.new_site_ribbon:after {
  position: absolute;
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid #fc9d96;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  right: -10px;
}
<div class="new_site_ribbon">Take the tour!</div>

【讨论】:

    猜你喜欢
    • 2021-12-31
    • 2012-10-05
    • 1970-01-01
    • 1970-01-01
    • 2013-07-05
    • 1970-01-01
    • 2010-09-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多