當前位置: 首頁>>代碼示例 >>用法及示例精選 >>正文


HTML5 MathML framespacing屬性用法及代碼示例


此屬性定義表格和框架之間的空間。此屬性僅被<mtable>標記接受。

用法:

<element framespacing="number">

屬性值:

  • number:此屬性定義表格和框架之間的空間。

下麵的示例說明HTML5 MathML中的framepacing屬性:

例:



<!DOCTYPE html> 
<html> 
  
<head> 
    <title> 
        HTML5 MathML framespacing Attribute 
    </title> 
</head> 
  
<body> 
    <center> 
        <h1 style="color:green"> 
            GeeksforGeeks 
        </h1> 
  
        <h3>HTML5 MathML framespacing Attribute</h3> 
  
        <math> 
            <mi>GeeksforGeeks</mi> 
            <mo>=</mo> 
            <mtable frame="solid" columnlines="dashed"
                framespacing="2" align="axis 1"> 
                  
                <mtr mathbackground="green;"> 
                    <mtd>Course</mtd> 
                    <mtd>Fee</mtd> 
                </mtr> 
                <mtr> 
                    <mtd> 
                        <mi>C++ STL</mi> 
                    </mtd> 
                    <mtd> 
                        <mi> 1499</mi> 
                    </mtd> 
                </mtr> 
                <mtr> 
                    <mtd> 
                        <mi>Placement 100 </mi> 
                    </mtd> 
                    <mtd> 
                        <mi>9999 </mi> 
                    </mtd> 
                </mtr> 
                <mtr> 
                    <mtd> 
                        <mi>DSA Foundation </mi> 
                    </mtd> 
                    <mtd> 
                        <mi>7999</mi> 
                    </mtd> 
                </mtr> 
            </mtable> 
        </math> 
    </center> 
</body> 
  
</html>

輸出:

支持的瀏覽器:下麵列出了HTML5 MathMLframespacing屬性支持的瀏覽器:

  • Firefox




相關用法


注:本文由純淨天空篩選整理自skyridetim大神的英文原創作品 HTML5 MathML framespacing Attribute。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。