Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 在每个html打印页面上显示页脚_Jquery_Html_Css - Fatal编程技术网

Jquery 在每个html打印页面上显示页脚

Jquery 在每个html打印页面上显示页脚,jquery,html,css,Jquery,Html,Css,我想在所有打印页上显示我的页脚,但它只在最后一页显示,对我来说没有任何效果。如果有人知道的话 我已经搜索了很多css建议,但是没有任何东西适合我。我的技术只在最后一页显示页脚。但我需要在所有可打印页面上显示 <style type="text/css"> html, body { height: 98.5%; width: 98%; } .wrapper { min-height: 98.5%; width: 98%; height: auto

我想在所有打印页上显示我的页脚,但它只在最后一页显示,对我来说没有任何效果。如果有人知道的话

我已经搜索了很多css建议,但是没有任何东西适合我。我的技术只在最后一页显示页脚。但我需要在所有可打印页面上显示

<style type="text/css">
html, body {
    height: 98.5%;
    width: 98%;
}
.wrapper {
    min-height: 98.5%;
    width: 98%;
    height: auto !important;
    height: 98.5%;
    margin: 0.3in 0.5in -0.1in 0.5in;
}
.footer, .push {
    margin-bottom: 0px;
    height: 10px;
    text-align: center;
}
.attachment-watermark-print {
    font-size: 20px;
    font-weight: bold;
    opacity: .5;
}
</style>
在css中使用此选项

.attachment-watermark-print {
position:absolute;
bottom:0;
font-size: 20px;
font-weight: bold;
opacity: .5;
}
并在.footer类中添加这些附加属性

.footer {
  position:relative;
}

谢谢,但是这个方法对我仍然不起作用,它只在打印模式下显示最后一页的水印。上面的CSS没有我在谷歌Chrome中的问题。。。请问有没有chrome的解决方案..securedeveloper
.footer {
  position:relative;
}