最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

css33d旋转出现锯齿_html/css

来源:懂视网 责编:小采 时间:2020-11-27 16:30:56
文档

css33d旋转出现锯齿_html/css

css33d旋转出现锯齿_html/css_WEB-ITnose:CSS3 3D 在做css3的效果的时候 碰到要整体进行偏转的问题 以为很简单 但是做出来的时候出现问题 #contant { width:1000px; height:768px; margin:0 auto; perspective:1000px; -webkit-perspective:10
推荐度:
导读css33d旋转出现锯齿_html/css_WEB-ITnose:CSS3 3D 在做css3的效果的时候 碰到要整体进行偏转的问题 以为很简单 但是做出来的时候出现问题 #contant { width:1000px; height:768px; margin:0 auto; perspective:1000px; -webkit-perspective:10

CSS3 3D

在做css3的效果的时候
碰到要整体进行偏转的问题
以为很简单
但是做出来的时候出现问题

#contant
{
width:1000px;
height:768px;
margin:0 auto;
perspective:1000px;
-webkit-perspective:1000px;

}
header
{
width:800px;
height:60px;
border:1px solid #f00;
background-color:#666;
transform:rotateY(3deg);
}

比如这样
在我进行偏转过后,边框出现锯齿,
我需要的是进行3D偏转,请问有没有办法可以解决


回复讨论(解决方案)

.css3{width:800px;height:60px;border:1px solid #f00;background-color:#666;transform:rotate(3deg);-ms-transform:rotate(3deg); /* Internet Explorer */-moz-transform:rotate(3deg); /* Firefox */-webkit-transform:rotate(3deg); /* Safari 和 Chrome */-o-transform:rotate(3deg); /* Opera */}

1.写单一属性的CSS是不兼容的;
2.[3deg]把动画拆分到某一度,自然会出现锯齿.

.css3{width:800px;height:60px;border:1px solid #f00;background-color:#666;transform:rotate(3deg);-ms-transform:rotate(3deg); /* Internet Explorer */-moz-transform:rotate(3deg); /* Firefox */-webkit-transform:rotate(3deg); /* Safari 和 Chrome */-o-transform:rotate(3deg); /* Opera */}

1.写单一属性的CSS是不兼容的;
2.[3deg]把动画拆分到某一度,自然会出现锯齿.
呵呵 ,我已经解决了,我知道浏览器兼容的问题
现在是再试验阶段,到时候会写满的

解决办法是,背景用图片,然后加上一句,border:1px solid transfor...透明那属性。

文档

css33d旋转出现锯齿_html/css

css33d旋转出现锯齿_html/css_WEB-ITnose:CSS3 3D 在做css3的效果的时候 碰到要整体进行偏转的问题 以为很简单 但是做出来的时候出现问题 #contant { width:1000px; height:768px; margin:0 auto; perspective:1000px; -webkit-perspective:10
推荐度:
标签: 旋转 3d html
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top