<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>打印测试</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<!--<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />-->
<link href="../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!--<link href="../assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/globalcommon/bootstrap-select/dist/css/bootstrap-select.css" rel="stylesheet" />
<link href="../assets/globalcommon/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css" rel="stylesheet" />
<link href="../assets/globalcommon/bootstrap-toastr/toastr.css" rel="stylesheet" />-->
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN THEME GLOBAL STYLES -->
<!--<link href="../assets/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
<link href="../assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />-->
<!-- END THEME GLOBAL STYLES -->
<!-- BEGIN THEME LAYOUT STYLES -->
<!--<link href="../assets/layouts/layout/css/layout.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/layouts/layout/css/themes/darkblue.min.css" rel="stylesheet" type="text/css" id="style_color" />
<link href="../assets/layouts/layout/css/custom.min.css" rel="stylesheet" type="text/css" />-->
<!-- END THEME LAYOUT STYLES -->
<!--<link rel="shortcut icon" href="favicon.ico" />-->
<!--<link href="../assets/apps/css/common.css" rel="stylesheet" />-->
<style type="text/css">
.toolbar {
border: 1px solid #6A9BFA;
background: #E8F7E8;
}
.paging {
/*分页符*/
page-break-after: always;
}
td {
font-size: 12px;
color: #000000;
}
tbody tr td{
padding-right:20px;
}
</style>
<script type="text/javascript">
//定义注册表位置 , 注意要设置ie对插件的支付,需要ie内核的才能使用
var HKEY_Path = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
//name的值可为header(页眉),footer(页脚),margin_bottom(下边距),margin_left(左边距),margin_right(右边距),margin_top(上边距)。
function PageSetup(name,value) {
try {
var Wsh=new ActiveXObject("WScript.Shell");
Wsh.RegWrite(HKEY_Path+name,value);
//alert('OK');
//修改注册表值
}
catch(e){
alert(e);
}
}
PageSetup('margin_top','0.6');
PageSetup('margin_left', '0.5');
PageSetup('margin_bottom', '0.2');
PageSetup('header', '&bAjava.org&b2019-01-01 10:10');
PageSetup('footer', 'AJava.org网站出品&b&w&b第&p页,共&P页');
</script>
<script type="text/javascript">
</script>
</head>
<body>
<div class="hidden-print">
<object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="wb" name="WebBrowser"></object>
<button οnclick="javascript: wb.ExecWB(6, 1)">打印</button>
<button οnclick="javascript: wb.ExecWB(7, 1)">打印预览</button>
<button οnclick="javascript: wb.ExecWB(8, 1)">页面设置</button>
<button οnclick="javascript: wb.ExecWB(6, 6)">直接打印</button>
</div>
<img src="http://h.hiphotos.baidu.com/image/h%3D300/sign=735d3740c2bf6c81e8372ae88c3fb1d7/962bd40735fae6cd9456784901b30f2442a70f3c.jpg" style="width:200px;height:250px"/>
<table style="border:1px solid black" class="table table-bordered table-striped table-hover table-condensed">
<thead style="display:table-header-group;font-weight:bold">
<tr>
<td colspan="5" align="center">AJava.org书城订单明细</td>
</tr>
<tr>
<td style="padding-left:10px">书名</td>
<td style="padding-left:10px">价格</td>
<td style="padding-left:10px">送货地址</td>
<td style="padding-left:10px">送货时间</td>
<td style="padding-left:10px">状态</td>
</tr>
</thead>
<tbody>
<tr>
<td>《Java 编程思想》</td>
<td>¥60.00</td>
<td>伊拉克巴格达总统府9栋8单元7门654室</td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
<tr>
<td>1《Java 编程思想》</td>
<td>¥60.00</td>
<td>伊拉克巴格达总统府9栋8单元7门654室</td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
<tr>
<td>2《Java 编程思想》</td>
<td>¥60.00</td>
<td>伊拉克巴格达总统府9栋8单元7门654室</td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
<tr>
<td>3《Java 编程思想》</td>
<td>¥60.00</td>
<td>伊拉克巴格达总统府9栋8单元7门654室</td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
<tr>
<td>4《Java 编程思想》</td>
<td>¥60.00</td>
<td>伊拉克巴格达总统府9栋8单元7门654室</td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
<tr>
<td>5《Java 编程思想》</td>
<td>¥60.00</td>
<td>伊拉克巴格达总统府9栋8单元7门654室</td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
<tr>
<td>6《Java 编程思想》</td>
<td>¥60.00</td>
<td>伊拉克巴格达总统府9栋8单元7门654室</td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
<tr>
<td>7《Java 编程思想》</td>
<td>¥60.00</td>
<td>伊拉克巴格达总统府9栋8单元7门654室</td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
<tr>
<td>8《Java 编程思想》</td>
<td>¥60.00</td>
<td><B>伊拉克巴格达总统府9栋8单元7门654室</B></td>
<td>2009-8-8</td>
<td>已送达</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="5" align="left">以上内容纯属虚构</td>
</tr>
</tfoot>
</table>
</body>
</html>