isborderpainted.php
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PHP 代码 · 共 38 行
PHP
38 行
<?php
require_once 'HTML/Progress.php';
$bar = new HTML_Progress();
$bar->setBorderPainted(true);
$ui =& $bar->getUI();
$ui->setBorderAttributes(array(
'width' => 2,
'style' => 'solid',
'color' => 'red'
));
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>isBorderPainted example </title>
<style type="text/css">
<!--
<?php echo $bar->getStyle(); ?>
// -->
</style>
<body>
<?php
echo $bar->toHtml();
$test = "\$res = \$bar->isBorderPainted() ? 'yes':'no';";
eval($test);
print('border is painted ? ' . $res);
?>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?