小编Mat*_*nan的帖子

iOS 上的 SVG 缩放动画缓慢

我正在尝试向 SVG 添加缩放动画。它在基于 Webkit 的浏览器中运行良好,但在 iOS Chrome 和 Safari 上,动画速度非常慢。是我想要制作动画的页面。这是相关的代码...

const HomeHeading = styled.svg`
  margin: 0;
  color: rgba(255, 255, 255, 1);
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  perspective: 1000;
  transform: scale(
      ${props =>
        props.scrollPosition / props.scale < 1
          ? 1
          : props.scrollPosition / props.scale}
    )
    translateZ(0);
  transform-origin: 42% 56%;

  @media screen and (max-width: 480px) {
    transform-origin: 43% 38% !important;
  }

  rect {
    -webkit-mask: url(#mask);
    mask: url(#mask);
    fill: #f00;
  }

  defs {
    mask …
Run Code Online (Sandbox Code Playgroud)

javascript css svg reactjs styled-components

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

区分Webpack加载器中的SVG图像和字体

我正在尝试创建一个Webpack加载器,所有其他文件类型都在工作; 然而,当它出现在SVG中时,加载器会混淆并通过字体加载器清空SVG图像文档.以下是我正在使用的代码......

  /* Images still being loaded in this test for some reason */
  {
    test   : /\.svg/,
    exclude: '../src/images',
    loader : 'file?prefix=font/'
  },
  {
    test   : /\.svg/,
    include: '../src/images',
    loader : 'file-loader'
  }
Run Code Online (Sandbox Code Playgroud)

正如您所看到的,我已经尝试过include/exclude在测试中使用,但是,这没有用.

有任何想法吗?

node.js webpack

3
推荐指数
1
解决办法
1683
查看次数

图像被切断Outlook 2007/2010/2013

我正在构建一个响应式HTML电子邮件模板,当我对Litmus测试我的布局时,图像在顶部被截断,如下所示......

在此输入图像描述

这是什么原因?这是一些带有jsfiddle的代码

<table style="color: #4b4b4b; font-size:12px; font-family: arial, helvetica, sans-serif; line-height: 18px; mso-line-height-rule: exactly; " >
<tbody>
<tr>
  <td height="40" width="40"><img src="http://www.uploadlibrary.com/TelecomsWorld/CALL-STATS/stats_07.jpg" width="40" height="40" style="display:block;" /></td>
<td>Geographic call mapping across the UK</td>
</tr>
...
Run Code Online (Sandbox Code Playgroud)

我已经研究过,找到了这个答案,但没有运气.

谢谢!

html css email outlook

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

标签 统计

css ×2

email ×1

html ×1

javascript ×1

node.js ×1

outlook ×1

reactjs ×1

styled-components ×1

svg ×1

webpack ×1