- From: Darrel Hsu <darrel.hsu@gmail.com>
- Date: Wed, 23 Oct 2013 15:18:50 +0800
- To: 姬玖 <khaos.me@gmail.com>
- Cc: "public-html-ig-zh@w3.org" <public-html-ig-zh@w3.org>
Received on Wednesday, 23 October 2013 07:19:17 UTC
Selectors allow the representation of an element's attributes. When a selector is used as an expression to match against an element, attribute selectors must be considered to match an element if that element has an attribute that matches the attribute represented by the attribute selector. 是不是这个原因 在 2013年10月23日下午12:01,姬玖 <khaos.me@gmail.com>写道: > hi,all > > p{ > color:green; > } > p[type="title"]{ > color:red > } > 这样写产生了一个问题,p[type="title"]会被忽略,chorme调试style,重新勾选样式恢复正常,chorme好强大的感觉。 > input { > width:100px; > } > input[type="title"]{ > width:200px; > } > 这样写是正常的。 > > type这个属性不能用于非表单元素吗?属性选择器中是否可以用自定义属性? >
Received on Wednesday, 23 October 2013 07:19:17 UTC