问题标签 [progressive-enhancement]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
8 回答
20259 浏览

javascript - HTML 单选按钮:隐藏项目符号

我希望一个特定的表单组件充当单选按钮(一次只能选择一个选项)。但是,我不希望无线电子弹显示选择其他呈现方法,例如选择高光或其他方法。这将允许优雅降级:如果用户浏览器不支持 Javascript,它只会降级为基本单选按钮。我希望通过 Javascript 或 CSS 隐藏项目符号按钮。有谁知道怎么做?谢谢。

0 投票
4 回答
1185 浏览

html - Can you use an HTML5 video/audio player with a Flash fail-safe?

I'm trying to figure out my options when it comes to playing both audio and video via the web. I'm sold on the HTML 5 <video /> and <audio />. But, I'd like to be able to display flash video/audio if the HTML video/audio fails.

Is there an easy way to detect if the video/audio is not playing for any reason, then swap out the HTML5 player for a Flash player?

0 投票
9 回答
1679 浏览

javascript - 添加的优缺点是什么