javascript - How to get the height of svg element in Firefox.
淡淡烟草味
淡淡烟草味 2017-05-19 10:30:24
0
2
451

The clientHeight and offsetHeight of the svg element are 0 and undefined in Firefox, but are normal in Chrome. How to get the height of svg?

    Title 
Abc
淡淡烟草味
淡淡烟草味

reply all (2)
大家讲道理

Can be solved with getBoundingClientRect().height.

    巴扎黑

    I haven’t encountered it specifically, but I can give you an idea. The prompts of Firefox are still user-friendly. Go directly to the console to see how the svg height is defined. If Firefox displays 0 and undefined, please post an error on the console. If I can give you some ideas, please adopt them. Thank you

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!