为什么不能更改SVG向量中的颜色?

当我将SVG图形复制并粘贴到HTML表单中时,为什么Adobe Dreamweaver拒绝更改SVG图形的颜色是否有某些原因?

It's the desired color when I create this in Adobe Illustrator, then I have it, then copy and paste the SVG code into my HTML sheet and it decides its going to be a different color....

这是SVG代码:

<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 842.89 125.04"><defs><style>.cls-1{fill:#e0dddd;}</style></defs><path class="cls-1" d="M841.89,354.53H0V277.15c290.88,4.39,589-107.15,841.89,0Z" transform="translate(0.5 -229.99)"/></svg>

我得到的结果是根据图像。

I really do deal with some idiotic situations at times! In what universe is the hexadecimal color #E0DDDD a blue?

screenshot of result

评论