Created
April 28, 2013 01:52
-
-
Save shiweifu/5475507 to your computer and use it in GitHub Desktop.
split_page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mySheet = document.styleSheets[0]; | |
function addCSSRule(selector, newRule) {if (mySheet.addRule) {mySheet.addRule(selector, newRule);} else {ruleIndex = mySheet.cssRules.length;mySheet.insertRule(selector + '{' + newRule + ';}', ruleIndex);}} | |
addCSSRule('html', 'padding: 10px; height: 528.000000px; -webkit-column-gap: 20px; -webkit-column-width: 300.000000px;') | |
addCSSRule('p', 'text-align: justify;') | |
addCSSRule('body', '-webkit-text-size-adjust: 100%;') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment