You can apply the CSS dynamically for this example of yours in this way:
function applyCSS()
{
$("div > p").css({
"background": "#fff",
"color": "#000"
});
}
Or, when you wanna apply this when the page loads:
$(document).ready(function(){
applyCSS();
});