使用新属性的有效CSS [英] Valid CSS with new properties

查看:129
本文介绍了使用新属性的有效CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一些CSS技巧来提高我的网站在Webkit浏览器的可用性/外观。两个主要的是 text-shadow resize:none (在textareas-停止恼人的分页调整大小选项在Safari和其他)。

I am using a few CSS tricks to boost up the usability/appearance of my site in Webkit browsers. The two main ones are text-shadow and resize:none (on textareas - to stop that annoying page-breaking resize option in Safari and others).

问题是,当我通过W3验证器运行我的页面我得到吨:

The problem is that when I run my page through the W3 validator I get tons of:


属性text-shadow在CSS级别2.1中不存在,但存在于:#feb4b4 1px 1px 0#feb4b4 1px 1px 0

Property text-shadow doesn't exist in CSS level 2.1 but exists in : #feb4b4 1px 1px 0 #feb4b4 1px 1px 0

和 -


CSS级别2.1中不存在属性调整大小, none none

Property resize doesn't exist in CSS level 2.1 but exists in : none none

这真的无效吗?

推荐答案

text- shadow 属性是一个CSS3属性。如果你从W3 CSS Validator服务的高级选项中选择CSS级别3,它应该通过okay。它也在CSS级别2,但是对于CSS级别2.1。

The text-shadow property is a CSS3 property. If you pick CSS Level 3 from the advanced options on the W3 CSS Validtor service, it should come through okay. It was also in CSS Level 2, but dropped for CSS Level 2.1.

这篇关于使用新属性的有效CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆