css - 如何在 IE 中删除音频标签周围的空格

标签 css html internet-explorer html5-audio

我想知道 IE 中音频标签周围的空白是从哪里来的。我似乎无法指出它。这是一个已知的问题?

<audio controls>
   <source src="http://www.w3schools.com/html/horse.ogg" type="audio/ogg">
   <source src="http://www.w3schools.com/html/horse.mp3" type="audio/mpeg">
 Your browser does not support the audio element.
 </audio>

在行动中:jsFiddle

使用:IE10

截图: enter image description here

最佳答案

您是否将 body/html 等元素的边距和填充归零?

jsfiddle 上的 normalize.css 将某些元素归零,但不包含 html

尝试输入 * { margin:0;填充:0; 在 CSS 中。

关于css - 如何在 IE 中删除音频标签周围的空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13767111/

相关文章:

c# - 使用 .net 2.0 从 C# 程序将焦点设置到已打开的 Internet Explorer 选项卡

html - 如何使下表单元格的内容可滚动?

javascript - 如何检测表单中的输入按键并滚动到元素?

html - <body> 内的 &lt;style&gt; 标签添加自定义 CSS 的有效解决方法?

internet-explorer - IE 错误,iframe 中的自动完成框位置

css - 你如何解决 IE 不支持 :after?

java - 除了 ClientBundle 之外,还有其他在 GWT 中设置 CellTables 样式的方法吗?

html - 如何制作 flex 元素 block 元素?

html - 内容不在 div 内

html - 请求移动网站的代码示例