我们如何在wordpress中添加bgsound?

发布于 2024-11-03 19:40:21 字数 43 浏览 0 评论 0原文

我们如何在wordpress中添加bgsound,bgsound不起作用

How can we add bgsound in wordpress, bgsound is not working

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟酉 2024-11-10 19:40:21

编辑 HTML 代码。标签<之后头>插入以下代码:

<embed autostart="true" height="0" loop="true" src="URL://music-file" width="0"/>

更新:

有三个标签用于添加声音文件。其中两个不是有效的 HTML,第三个不能跨浏览器可靠地工作:

<bgsound> - not a valid HTML or XHTML tag, and it only works in Internet Explorer
<embed> - not a valid HTML or XHTML tag, but it works in most browsers
<object> - a valid HTML and XHTML tag, but it only works in Safari  

注意:您的情况可能有所不同,但将音乐作为网页背景添加通常是一个非常糟糕的主意。在后台播放音乐可能会中断当前通过用户扬声器发出的任何声音。许多人将计算机用作播放音乐和视频的媒体站。突然被打断就相当于一张报纸从桌子上跳下来,像抱脸者一样缠住你的头,开始把头条新闻塞进你的喉咙。

播放音乐也会降低网站的性能,尤其是在速度较慢的机器上。

Edit the HTML code. After the tag < head > insert the following code:

<embed autostart="true" height="0" loop="true" src="URL://music-file" width="0"/>

Update:

There are three tags that are used to add sound files. Two are not valid HTML and the third doesn't work reliably across browsers:

<bgsound> - not a valid HTML or XHTML tag, and it only works in Internet Explorer
<embed> - not a valid HTML or XHTML tag, but it works in most browsers
<object> - a valid HTML and XHTML tag, but it only works in Safari  

Note: Your situation may be different, but it is usually a very bad idea to add music as a background to a web page. Having music playing in the background can interrupt whatever is currently coming through the users speakers. Many people use their computers as media stations that play music and video. Having this suddenly interrupted is the equivalent of having a newspaper that jumps off the table and wraps around your head like a facehugger and starts laying headlines in your throat.

Also having music playing will decrease the performance of the site, especially on slower machines.

猫烠⑼条掵仅有一顆心 2024-11-10 19:40:21

在主题的头文件(header.php)中执行此操作。

Do it in the header file of your theme (header.php).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文