$page_id = get_queried_object_id();
body { background-color: red; } .page-id-1 body, .page-id-2 body , .page-id-3 body { background-color: green!important; }