iframe高度不能正常工作?

时间:2017-10-23 15:53:30

标签: css

我正在尝试在这个div中正确放置iframe。这就是现在的样子:

enter image description here

如何调整iframe的高度,以便查看整个视频。谢谢

1 个答案:

答案 0 :(得分:0)

从YouTube上抓取iframe后:

public static byte[] Decompress(byte[] gzip)
    {
        using (var stream = new Ionic.Zlib.ZlibStream(new MemoryStream(gzip), Ionic.Zlib.CompressionMode.Decompress))
        {
            var outStream = new MemoryStream();
            const int size = 999999; //Playing around with various sizes didn't help
            byte[] buffer = new byte[size];

            int read;
            while ((read = stream.Read(buffer, 0, size)) > 0)
            {
                outStream.Write(buffer, 0, read);
                read = 0;
            }

            return outStream.ToArray();
        }
    }

只需增加高度属性,直到获得所需效果,这应该可以解决问题。