06-27-2020, 05:02 AM | #1 |
Connoisseur
Posts: 59
Karma: 100
Join Date: Jun 2020
Device: ePUB Kindle and iBooks
|
CSS media queries to detect apple books
If I want to detect Kindle readers, I can use:
@media amzn-kf8 { /* CSS for KF8 devices */ } or @media amzn-mobi7 { /* CSS for Mobi7 devices */ } Is there an equivalent for Apple Books? THX |
06-27-2020, 04:27 PM | #2 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
AFAIK, there's no Apple Books equivalent. You can, of course, test for specific Apple devices, for example iPads.
If you want to be absolutely sure, you'll need to use JavaScript to get the value of the epubReadingSystem name property. |
Advert | |
|
06-30-2020, 02:02 PM | #3 |
Connoisseur
Posts: 59
Karma: 100
Join Date: Jun 2020
Device: ePUB Kindle and iBooks
|
Thank you!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iBooks Author ePub3 Media Queries | mattmc | ePub | 2 | 10-12-2016 05:55 PM |
Media Queries for images as dropcaps in Kindle DX | verydeepwater | Kindle Formats | 3 | 03-22-2014 05:35 PM |
Media Queries | eggheadbooks1 | Kindle Formats | 4 | 12-16-2013 02:32 AM |
Calibre and Media Queries | chrlsdrwn12 | Calibre | 0 | 12-05-2012 11:16 AM |
Media Queries on Kindle Previewer | AIR-WIZZ | Kindle Developer's Corner | 26 | 10-15-2012 10:10 AM |