Chrome又开始做一些自作聪明的事情了,在Mac OSX上升级到Chrome 13以后发现,它把所有html5中details标签都默认自动折叠了,还加上了一个恶心的小三角。
有什么方法能屏蔽chrome默认的效果呢?
Chrome又开始做一些自作聪明的事情了,在Mac OSX上升级到Chrome 13以后发现,它把所有html5中details标签都默认自动折叠了,还加上了一个恶心的小三角。
有什么方法能屏蔽chrome默认的效果呢?
chromuim并没有自作聪明,w3.org文档原话说了
The details element represents a disclosure widget from which the user can obtain additional information or controls.
所以不是chromuim要实现这种效果而是按w3c标准必须实现这种效果
另外文档提到
The open content attribute is a boolean attribute. If present, it indicates that the details are to be shown to the user. If the attribute is absent, the details are not to be shown.
所以默认要显示details加属性open="open"
5 回答1.5k 阅读
5 回答1.6k 阅读✓ 已解决
2 回答908 阅读✓ 已解决
4 回答1.1k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
2 回答1k 阅读✓ 已解决
4 回答1k 阅读
参考 http://www.w3schools.com/html5/tag_su...,想要隐藏 details 标签的带箭头的 "details",可以这样做:
解释: