EPUB-format electronic files are generally opened with a dedicated reader, but if you can open them using a browser, you can change CSS at will to achieve the ultimate experience.
For example, you can customize the font, line spacing, background color, font size, indentation, and so on...
Of course, if you do not need to add the flip button, skip steps 2 and 3 and proceed to Step 4 directly.
The effect is as follows:
1. Decompress Epub-format e-books to a specific folder using the decompress software. The decompressed files are generally in HTML format. 2. Rename the file, name it in numbers, and start from 1. You can use the bat batch processing document to remove the renamed brackets and leave only numbers, when the next page is turned over, the page is calculated.
1. First select all files, right-click and choose rename. Note that you can directly Delete the original file name without entering any characters (or enter your favorite name ), then, it is renamed to this form (1).html, (22.16.html, watermark, this is ineffective.
1 @Echo Off&SetLocal ENABLEDELAYEDEXPANSION2 FOR %%a in (*) do (3 set "name=%%a"4 set "name=!name: (=!"5 set "name=!name:)=!"6 ren "%%a" "!name!"7 )8 exit
3. Double-click to execute batch processing. You will find that "(", ")" in your name is removed.
3. Add the "Previous Page" and "next page" buttons to the HTML page.
Before inserting code into the </body>, you can use NotePad to replace multiple </body> characters.
Code:
<Script language = "JavaScript"> <! -- Var strhref = Window. location. href; var pagename = strhref. slice (strhref. lastindexof ("/") + 1); var pagenumber = parseint (pagename. replace (". html "," "); function forward () {var AA = pageNumber-1; window. location. href = AA + ". html ";} function back () {var BB = pagenumber + 1; window. location. href = BB + ". html ";} // --> </SCRIPT> <div> <Div class = "fanye1"> <input type = "button" value = "Previous Page" onclick = "Forward () "> </div> <Div class =" fanye2 "> <input type =" button "value =" next page "onclick =" back () "> </div>
4. Add CSS styles to the browser page to get custom reading results.
My CSS is from. Replace the main.css file.
My stylesheet.css
Https://files.cnblogs.com/files/ricksteves/stylesheet.css
(If you need to use my CSS, right-click the link above and save it as download)
The advantage of using a browser to read is obvious. English books are directly used with the Oulu dictionary to extract meanings.
Finally:
Customize the style and use the browser to read Epub-format e-books