terseBanner icon indicating copy to clipboard operation
terseBanner copied to clipboard

img标签外加a标签会有问题

Open Ignorantforce opened this issue 7 years ago • 1 comments

虽然不影响使用,但依然会报错误 源码是这样的

$(this).children('img')

一般轮播图带链接很正常吧?

Ignorantforce avatar Jun 09 '17 02:06 Ignorantforce

轮播需要的初始结构一般是这样:banner > ul > li > img; 把 ul 更换为 div ,把 li 更换为 a 就行了,无需在 li 和 img 标签之间插入a标签; 默认状态下,插件会自动转换 img 为 background-image,如使用 find() 方法选择图片的话,li里面的任何图片都会被转换背景图片,这是不合理的。

happyfreelife avatar Jun 17 '17 00:06 happyfreelife