- From: Jinjiang Zhao <zhaojinjiang@yahoo.com.cn>
- Date: Tue, 21 Jun 2011 18:01:11 +0800
- To: <public-html-ig-zh@w3.org>
抱歉, 我写了两个 :after 应该一个是 :after 一个是 :before - - -----原始邮件----- From: Jinjiang Zhao Sent: Tuesday, June 21, 2011 5:54 PM To: public-html-ig-zh@w3.org Subject: 提问:可以通过JavaScript给伪元素绑定事件吗? 如题。比如在css中定义: #picture-gallery:after { content: "<"; …… } #picture-gallery:after { content: ">"; …… } 然后通过 JavaScript 设定,当鼠标点击这两个伪元素的时候,分别执行“前一页”和“后一页”的翻页效果。 先谢了 p.s. 今天终于拿到w3c的账号了,我的id是jzhao3,晚上去认领文档做翻译:-) Jinks Zhao | 勾三股四 zhaojinjiang@yahoo.com.cn http://weibo.com/mx006
Received on Tuesday, 21 June 2011 10:02:00 UTC