####改变layer里面的样式,找了很多资料,效果都不太理想,最终,想到了这个办法,代码如下
layer.tips( "<span style='color:#000000;word-wrap:break-word'>"+$(this).attr('content')+"</span>" , $(this),{ tips: [1,'#eee'], time: 2000,});
就是直接将要显示的数据用标签包裹起来,嘿嘿,layui会解析,在标签里面加自己想要的样式就可以啦,效果就是这样,审美有限哈哈