⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tables.php

📁 很棒的在线教学系统
💻 PHP
字号:
<?phprequire_once 'HTMLPurifier/HTMLModule.php';require_once 'HTMLPurifier/ChildDef/Table.php';/** * XHTML 1.1 Tables Module, fully defines accessible table elements. */class HTMLPurifier_HTMLModule_Tables extends HTMLPurifier_HTMLModule{        var $name = 'Tables';        function setup($config) {                $this->addElement('caption', true, false, 'Inline', 'Common');                $this->addElement('table', true, 'Block',             new HTMLPurifier_ChildDef_Table(),  'Common',             array(                'border' => 'Pixels',                'cellpadding' => 'Length',                'cellspacing' => 'Length',                'frame' => 'Enum#void,above,below,hsides,lhs,rhs,vsides,box,border',                'rules' => 'Enum#none,groups,rows,cols,all',                'summary' => 'Text',                'width' => 'Length'            )        );                // common attributes        $cell_align = array(            'align' => 'Enum#left,center,right,justify,char',            'charoff' => 'Length',            'valign' => 'Enum#top,middle,bottom,baseline',        );                $cell_t = array_merge(            array(                'abbr'    => 'Text',                'colspan' => 'Number',                'rowspan' => 'Number',            ),            $cell_align        );        $this->addElement('td', true, false, 'Flow', 'Common', $cell_t);        $this->addElement('th', true, false, 'Flow', 'Common', $cell_t);                $this->addElement('tr', true, false, 'Required: td | th', 'Common', $cell_align);                $cell_col = array_merge(            array(                'span'  => 'Number',                'width' => 'MultiLength',            ),            $cell_align        );        $this->addElement('col',      true, false, 'Empty',         'Common', $cell_col);        $this->addElement('colgroup', true, false, 'Optional: col', 'Common', $cell_col);                $this->addElement('tbody', true, false, 'Required: tr', 'Common', $cell_align);        $this->addElement('thead', true, false, 'Required: tr', 'Common', $cell_align);        $this->addElement('tfoot', true, false, 'Required: tr', 'Common', $cell_align);            }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -