mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
fix css rule
This commit is contained in:
parent
5269cfc4f8
commit
ab4638b10a
1 changed files with 2 additions and 2 deletions
|
@ -598,8 +598,8 @@ class Rendition {
|
||||||
|
|
||||||
contents.addStylesheetRules([
|
contents.addStylesheetRules([
|
||||||
["img",
|
["img",
|
||||||
["max-width", (this._layout.columnWidth) + "px; !important"],
|
["max-width", (this._layout.columnWidth) + "px !important"],
|
||||||
["max-height", (this._layout.height) + "px; !important"],
|
["max-height", (this._layout.height) + "px !important"],
|
||||||
["object-fit", "contain"],
|
["object-fit", "contain"],
|
||||||
["page-break-inside", "avoid"]
|
["page-break-inside", "avoid"]
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue