< style scoped>在Chrome中可用,启用了实验平台功能,直到Chrome 36.
( http://www.w3.org/TR/html51/document-metadata.html#attr-style-scoped)
( http://www.w3.org/TR/html51/document-metadata.html#attr-style-scoped)
它已经消失了Chrome 37(http://caniuse.com/#feat=style-scoped)
我相信不久前已经看过了,但再也找不到了.他们删除它有利于Shadow DOM吗?
示例在http://jsfiddle.net/tofu/xct0jo5u/(在FireFox中工作,但在Chrome中没有启用实验性网络平台功能)
解决方法
是的,根据Chromium Dashboard,Chrome 35中的范围样式表已被删除:
http://www.chromestatus.com/features/5374137958662144
It was partially implemented behind a flag,but was later retracted due to high code complexity. 07001