Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fake-tag not work #360

Open
1 task done
yifei8 opened this issue May 25, 2023 · 0 comments
Open
1 task done

fake-tag not work #360

yifei8 opened this issue May 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yifei8
Copy link
Member

yifei8 commented May 25, 2023

Affected version

0.12.0 +

No same issues found.

  • Yes, I search all issues but not found.

Steps to Reproduce

见代码示例

Code example

<html style="font-size: 9.25926vw">
  <head>
    <meta charset="utf-8" />
    <meta content="portrait" name="screen-orientation" />
    <meta content="portrait" name="x5-orientation" />
    <meta content="webkit" name="renderer" />
    <meta content="max-age=180" http-equiv="Cache-control" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=0.5,maximum-scale=0.5,minimum-scale=0.5,user-scalable=no"
    />
    <title>tag style</title>
    <meta name="keywords" content="请配置页面关键词" />
    <meta name="description" content="请配置页面描述" />
  </head>
  <style>
    body {
      width: 100%;
      height: 100vh;
      margin: 0;
      font-size: 30px;
    }
    .tag {
      background: linear-gradient(
        90deg,
        rgb(255, 134, 64) 3%,
        rgba(255, 134, 64, 0.4) 97.33%
      );
      color: rgb(255, 134, 64);
      border: none;
      border-radius: 9px 6px;
      padding: 0;
      position: relative;
      transform: skewX(-10deg);
      line-height: 44px;
      display: inline-block;
      font-size: 30px;
      font-weight: 550;
      max-width: 210px;
      margin: 20px;
      height: 44px;
    }

    .fake-tag {
      background: #fff;
      border-radius: inherit;
      bottom: 0;
      content: '';
      left: 0;
      margin: 2px;
      position: absolute;
      right: 0;
      top: 0;
    }
  </style>

  <body>
    <div class="tag">
      <div class="fake-tag"></div>

      <div class="content">超级管理员</div>
    </div>
    <script></script>
  </body>
</html>

Expected results

和H5一致

Actual results

fake-tag not work

@yifei8 yifei8 added the bug Something isn't working label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant