mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
578085765c
commit
45853001cb
@ -25,6 +25,8 @@ simple_vendor_prefixes = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def set_css(elem, **kw):
|
def set_css(elem, **kw):
|
||||||
|
if type(elem) is 'string':
|
||||||
|
elem = document.querySelector(elem)
|
||||||
s = elem.style
|
s = elem.style
|
||||||
if s:
|
if s:
|
||||||
for prop in kw:
|
for prop in kw:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user