Как я могу сделать SVG, как показано ниже? [Дубликат]

private void button26_Click(object sender, EventArgs e)
{
    System.Diagnostics.ProcessStartInfo proc = new System.Diagnostics.ProcessStartInfo();
    proc.FileName = @"C:\windows\system32\cmd.exe";
    proc.Arguments = "/c ping -t " + tx1.Text + " ";
    System.Diagnostics.Process.Start(proc);
    tx1.Focus();
}

private void button27_Click(object sender, EventArgs e)
{
    System.Diagnostics.ProcessStartInfo proc = new System.Diagnostics.ProcessStartInfo();
    proc.FileName = @"C:\windows\system32\cmd.exe";
    proc.Arguments = "/c ping  " + tx2.Text + " ";
    System.Diagnostics.Process.Start(proc);
    tx2.Focus();
}
2
задан Dwhitz 4 April 2017 в 12:32
поделиться

2 ответа

Вы можете вставлять видео с тегом foreignobject

<foreignObject width="853" x="0"y="0" height="480">
      <body xmlns="http://www.w3.org/1999/xhtml">
        <iframe width="853" height="480" src="//www.youtube.com/embed/dkiuuMfoGvM" frameborder="0" allowfullscreen></iframe>
      </body>
 </foreignObject>

https://jsfiddle.net/vp2fhwy7/1/

0
ответ дан ptiflo 15 August 2018 в 18:30
поделиться
  • 1
    но мне нужно, чтобы видео было только внутри сердца – followthemadhat 4 April 2017 в 12:33

используйте clipPath

svg <clipPath id="clip"> <polygon class="st1" points="268,81 333,12 457,12 524,68.5 524,206 268,491 10,207 10,66 77.5,12 202,12 "/> </clipPath>

html <iframe width="560" height="315" src="https://www.youtube.com/embed/W4PR4vNOxfE" frameborder="0" allowfullscreen></iframe>

css iframe { -webkit-clip-path:url(#clip) }

1
ответ дан Uzi 15 August 2018 в 18:30
поделиться