Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这段代码,但因为我使用“”,a.innerheight所以不会被它的值取代。是否有可能使这种动态化?
a.innerheight
a.style.webkitTransform = "translate(0,a.innerHeight)"
我不确定你在问什么……这可能吗?
a.style.webkitTransform = "translate(0," + a.innerHeight + ")";