crabbly / Print.js

A tiny javascript library to help printing from the web.
MIT License
4.28k stars 672 forks source link

CSS styles not being applied #675

Open wellington0718 opened 1 year ago

wellington0718 commented 1 year ago

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. `<!DOCTYPE html>

Document

ASP.NET

ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.

Learn more »

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.

Learn more »

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.

Learn more »

Web Hosting

You can easily find a web hosting company that offers the right mix of features and price for your applications.

Learn more »

```

hariacharya80 commented 1 year ago

@wellington0718 Include https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css and other necessary css link in the document itself too. P.S: please edit your issue to clearly mention the codebase.