我有一个表格,其中填充了动态数据并处理打印我已经应用了一些分页符一切正常,但我需要在打印时显示每页下面的" 第1页3 "等分页.我试过用css但我只能用它打印当前的页码.有没有其他方法来实现它?这是我的代码
body {
counter-reset: page;
}
.page-count:after {
counter-increment: page;
content: "Page " counter(page) " of " counter(pages);
}
Run Code Online (Sandbox Code Playgroud) 我已将 service-worker.js 和清单添加到我的网站,并使用灯塔测试了页面,这表明我的网页已准备好向用户显示“添加到主屏幕”。但是,如果用户在第一次没有关闭提示的情况下关闭选项卡,提示不会显示两次。还有其他方法可以实现吗?。这是我的清单
{
"short_name": "TestApp",
"name": "Long Name",
"icons": [
{
"src":"images/favicon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src":"images/favicon-256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src":"images/favicon-384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src":"images/favicon-512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/",
"background_color": "#fff",
"theme_color": "#d2d2d2",
"display": "standalone"
}
Run Code Online (Sandbox Code Playgroud)
这是我的 service worker javascript 文件
/*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance …Run Code Online (Sandbox Code Playgroud) javascript google-chrome manifest service-worker progressive-web-apps