简体   繁体   English

如何转换CSS代码在Safari,Opera和Chrome中具有支持?

[英]How to transform css code to have support in Safari , Opera and Chrome?

I have this style in CSS for a DIV: 我在CSS中有这种样式用于DIV:

background: repeating-linear-gradient(-55deg, #F00, #F00 10px, #F00 10px, #FFF 11px) repeat scroll 0% 0% transparent

The problem is that the style only works with mozilla and IE , and I need to work with safari, opera and chrome . 问题在于该样式仅适用于mozilla和IE,而我需要使用safari,opera和chrome。

From Mozilla Developer Network 来自Mozilla开发人员网络

Gecko, Opera & Webkit considers to start to the right, instead of the top. Gecko,Opera和Webkit认为从右开始,而不是从顶部开始。 Ie it considered an angle of 0deg as a direction indicator pointing to the right. 即,它认为0度角是指向右边的方向指示器。 This is different from the latest specification where an angle of 0deg as a direction indicator points to the top. 这与最新规范不同,在最新规范中,0度角作为方向指示器指向顶部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何更改Safari和Opera的字体大小,而不更改CSS文件中的chrome。 - How to change font size for safari and opera but not chrome in CSS file. 代码可在Chrome,Firefox和Safari中运行,但不能在IE或Opera中运行 - Code working in Chrome, Firefox and Safari but not in IE or Opera Mozilla,Chrome,Opera上的CSS 3D支持 - CSS 3D support on Mozilla,Chrome,Opera 滚动效果的Javascript代码可在Safari / chrome中运行,而不在Firefox / Opera中运行 - Javascript code for scroll effect works in Safari/chrome, not firefox/opera JavaScript代码仅在Chrome中有效,而在Firefox,IE,Opera和Safari中无效 - JavaScript code working only in Chrome but not in Firefox, IE, Opera and Safari 如何在Chrome,Safari和Opera中单击选项元素时触发事件或解决方法 - How to fire an event on option element click or a workaround in Chrome, Safari and Opera 圆角隐藏隐藏溢出+变换(在Firefox和Safari中可以,在Chrome和Opera中不可以) - Rounded corner hide overflow + transform (Ok in Firefox & Safari, not in Chrome nor Opera) 如何在webkit浏览器中删除c伪路径,如chrome,safari,opera? - how to remove c fakepath in webkit browser like chrome, safari, opera? Safari,Opera,IE的CSS问题 - CSS Issues with Safari, Opera, IE CSS3转换(转换)在Firefox中不起作用,但在Chrome和Safari中 - CSS3 transition (transform) not working in Firefox, but in Chrome and Safari
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM