简体   繁体   English

调整svg的大小

[英]The resizing of svg

I have a problem with my svg. 我的svg有问题。 I want to understand why the resizing doesn't work. 我想了解为什么无法调整大小。 This is my code 这是我的代码

 <!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Titel der Seite | Name der Website</title> </head> <body> <h1>Hier ist das Training von SVG</h1> <svg width ="1000" hight ="1000"> <circle r ="100" cx="200" cy="110" fill="#EC7357" stroke= "black" stroke-width = "2px"/> </svg> </body> </html> 

Running this code, the circle will be cutte. 运行此代码,圆将被切割。 How can I change this in order to see the whole cirle? 我如何更改此设置以查看整个圆?

Thank you! 谢谢!

It looks like a spelling error is the cause of your height not being applied. 看起来拼写错误是导致您未应用身高的原因。 "hight" should be "height". “ hight”应为“ height”。 This will make sure that your height attribute gets applied to the element. 这将确保您的height属性被应用于该元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM