<input type=button name=print value="page setup" onclick="WebBrowser1.ExecWB(8,1)">
<style>
@media print {
.ipt {display:none}
}
</style>
<input class="ipt" value=a type=button>
<上面将确保按钮不被打印
<style>
@media print {
.ipt {display:none}
}
</style>
<input class="ipt" value=a type=button>
<上面将确保按钮不被打印
@media print {
.ipt {display:none}
}
</style>
<input class="ipt" value=printvew type=button>
上面将确保按钮不被打印
SyntaxHTML @media sMediaType { sRules }
Scripting N/A Possible ValuessMediaType String that specifies one of the following media types:screen Output is intended for computer screens.
print Output is intended for printed material and for documents viewed in Print Preview mode.
all Output is intended for all devices.
sRules String that specifies one or more rules in a styleSheet object.
SyntaxHTML @media sMediaType { sRules }
Scripting N/A Possible ValuessMediaType String that specifies one of the following media types:screen Output is intended for computer screens.
print Output is intended for printed material and for documents viewed in Print Preview mode.
all Output is intended for all devices.
sRules String that specifies one or more rules in a styleSheet object.