2 回答

TA貢獻(xiàn)1934條經(jīng)驗(yàn) 獲得超2個(gè)贊
,如果回顯中有另一個(gè)字符串,則無(wú)需提及變量就必須將其連接起來(lái)。并且您還必須在變量后指定一個(gè)空格,以便不與變量連接的類型。
將您的代碼更改為
<?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貢獻(xiàn)1813條經(jīng)驗(yàn) 獲得超2個(gè)贊
變量的調(diào)用一定要正確,如下:
<?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 關(guān)注
- 133 瀏覽
添加回答
舉報(bào)