Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css Safari使用固定位置和变换矩阵扭曲元素中的内容_Css_Safari - Fatal编程技术网

Css Safari使用固定位置和变换矩阵扭曲元素中的内容

Css Safari使用固定位置和变换矩阵扭曲元素中的内容,css,safari,Css,Safari,我意识到一个元素中的所有内容都带有样式position:fixed和transform:matrix是扭曲的,当然,除了将位置更改为fixed之外,到目前为止我找不到任何解决方案 在Safari v10.1.2上测试 这是一幅图像: 以下是html: <div class="first fixed"> Fixed element </div> <div class="second "> Static element </div>

我意识到一个元素中的所有内容都带有样式
position:fixed
transform:matrix
是扭曲的,当然,除了将
位置
更改为
fixed
之外,到目前为止我找不到任何解决方案

在Safari v10.1.2上测试

这是一幅图像:

以下是html:

<div class="first fixed">
    Fixed element  
</div>

<div class="second ">
   Static element
</div>
和演示:

div {
  width: 200px;
  padding: 10px;
  background-color: yellow;
  border: 1px solid black;
}

div.first {
  background: steelblue;
  transform: matrix(3, 0, 0, 3, 300, 100); /* Standard syntax */
}

div.second {
  background: orange;
  transform: matrix(3, 0, 0, 3, 300, 250); /* Standard syntax */
}

.fixed {
  position:fixed;
}