2 回答
TA贡献1934条经验 获得超2个赞
,如果回显中有另一个字符串,则无需提及变量就必须将其连接起来。并且您还必须在变量后指定一个空格,以便不与变量连接的类型。
将您的代码更改为
<?php
$link='"https://jia666-my.sharepoint.com/:v:/g/personal/s1pxky0tu_xkx_me/EXvt95V1DmRHg9lrqhd5L0ABby8GhL5XC15qXq1tu87zYw?Download=1"';
echo '<video controls="" height="640" width="720">
<source src='. $link. ' type="video/mp4"></source>
Your browser does not support the video tag.
</video>
</body>
</html>';
TA贡献1813条经验 获得超2个赞
变量的调用一定要正确,如下:
<?php
$link = 'https://jia666-my.sharepoint.com/:v:/g/personal/s1pxky0tu_xkx_me/EXvt95V1DmRHg9lrqhd5L0ABby8GhL5XC15qXq1tu87zYw?Download=1';
?>
<!DOCTYPE html>
<html>
<head>
<title>Test Video</title>
</head>
<body>
<video controls="" height="640" width="720">
<source src="<?php echo $link; ?>" type="video/mp4"></source>
<source src="<?php echo $link; ?>" type="video/webm"></source>
Your browser does not support the video tag.
</video>
</body>
</html>
- 2 回答
- 0 关注
- 104 浏览
添加回答
举报