开发者

Lift's splitting single tags into pairs leads to issues

开发者 https://www.devze.com 2023-01-25 20:26 出处:网络
I\'m using Nivo Slider for some html-pages of my 开发者_C百科project. Img tags are inserted by a snippet into the Nivo\'s div. In all browsers all looks fine - except IE: duplicated images, broken nav

I'm using Nivo Slider for some html-pages of my 开发者_C百科project. Img tags are inserted by a snippet into the Nivo's div. In all browsers all looks fine - except IE: duplicated images, broken navigation, etc. The cause is that the snippet transforms <img ... /> into <img></img> tag pair. Is there a way not to split single tags into pairs with Scala/Lift during processing?


The answer is to turn off Lift's IE render feature. In Boot.scala:

LiftRules.calcIEMode = () => false
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号