CSS styles not being applied
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 688
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I just found this tool for printing and wanted to use it, however it does not load the styles.
I followed the doc and searched all issued on github regarding styles not being applied, but none of the answer actually worked
for me. I tried running the website on a server and and without it, but the css was not loaded.
below is the cotent and the printJS settings.
Please give me some help on how to get the styles to be applied.
`
Document
ASP.NET
ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.
Getting started
ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
enables a clean separation of concerns and gives you full control over markup
for enjoyable, agile development.
Get more libraries
NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
Web Hosting
You can easily find a web hosting company that offers the right mix of features and price for your applications.
`
$(document).ready(function () {
$("#pagePrintBtn").on("click", () => {
printJS({
printable: 'printSession',
type:'html',
css: ["./custome.css", "http://127.0.0.1:5500/custome.css","https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"],
targetStyles: ['*']
});
})
})
``
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.