href

非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!

href 全局属性在 MathML 元素上创建一个指向指定 URL 的超链接。

示例

html
<!-- 将这个数学方程链接到维基百科关于勾股定理的文章。 -->
<math href="https://zh.wikipedia.org/wiki/勾股定理">
  <mi>c</mi>
  <mo>=</mo>
  <!-- 将这个平方根链接到相应的 SageMath 计算。 -->
  <msqrt href="https://sagecell.sagemath.org/?z=eJwrLiwq0TCOM9I2iTPSBAAeqgPO">
    <msup>
      <mn>3</mn>
      <mn>2</mn>
    </msup>
    <mo>+</mo>
    <msup>
      <mn>4</mn>
      <mn>2</mn>
    </msup>
  </msqrt>
  <mo>=</mo>
  <mn>5</mn>
</math>

规范

href 属性在任何面向浏览器的规范中都没有定义,但你可以在 MathML 4 中找到描述。

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
href
Non-standard

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.
See implementation notes.

参见