Dav*_*vid 0 javascript colorbox
我有一些图像,我希望colorbox直接从鼠标点击img标签开始其画廊,而不是hyperlink像规则那样在标签上.有没有办法做到这一点?
sce*_*sor 10
$('img').click(function() {
$(this).colorbox({href: $(this).attr('src')});
});
Run Code Online (Sandbox Code Playgroud)
另见我的jsfiddle:http://jsfiddle.net/5HdQB/
| 归档时间: |
|
| 查看次数: |
2471 次 |
| 最近记录: |