スタイルを適用させる出力メディアを指定する事ができます。
HTMLで出力メディアを分ける<link rel="Stylesheet" type="text/css" href="CSSパス" media="出力メディア">
もしくは<style type="text/css" media="出力メディア">
CSSで出力メディアを分ける@media 出力メディア {
body {
・・・
}
}
@media 出力メディア {
body {
・・・
}
}
出力メディアについては下記を参考に
【HTML4.01仕様書邦訳】出力メディア
http://www.asahi-net.or.jp/~sd5a-ucd/rec-html401j/types.html#h-6.13
で、印刷時のスタイルに下記を入れておけば表示されません。印刷ボタンを指すセレクタ {
visibility: hidden;
}もしくは印刷ボタンを指すセレクタ {
display: none;
}上記2つの違いは下記を参考に
http://www.tagindex.com/stylesheet/box/visibility.html
http://www.tagindex.com/stylesheet/box/display.html