[Vuejs]-Why is Vue stripping the style attribute in this one component

0👍

Ok found it. The style rule I was testing, top:500, needed ‘px’ to be valid. So it was the browser stripping it, not Vue? There may be more to this story because the same code works fine on another page, but adding ‘px’ has fixed it.

Leave a comment