jQuery の使用
次のように、要素を作成してstyleに追加する必要がありますhead。
// array containing our styles
var styles = [
    "h2 { color: red; }",
    "h3 { color: green; }"
];
// create the style element and concat the styles
$("<style>" + styles.join("") + "</style>").appendTo("head");
注: 配列を使用する必要はありません。複数のスタイルを簡単に追加できるようにするために追加しただけです。
jsFiddle のテスト ケースを参照してください。
.insertRuleネイティブメソッドを使用して、ルールをスタイルシートに挿入することもできます。
// get the last stylesheet
var sheet = document.styleSheets[document.styleSheets.length-1];
// get a reference to the insertRule function
// the addRule method is used in IE8 and older
var insertRule = sheet[sheet.insertRule ? "insertRule" : "addRule"];
// reuse the styles-array from the jQuery snippet
while (styles.length) {
    insertRule.call(sheet, styles.splice(0,1));
}
jsFiddle のテスト ケースを参照してください。