Dianna Agron says she is sorry if people were offended by the sexy GQ photos in which she and her "Glee" co-stars appear.

Agron, Lea Michele and Cory Montieth are all in their 20s but play high-school students on "Glee."

Images of them in the magazine have drawn the ire of the Parents Television Council, which slams the stars and magazine for sexualizing the people who play popular under-age characters.

UsMagazine.com said Agron apologized Wednesday in her blog to those who might be "hurt" or "uncomfortable" by the photos, but noted, "We are not the first" public figures to pose provocatively.

"Nobody is perfect, and these photos do not represent who I am," she wrote. GQ "asked us to play very heightened versions of our school characters. A 'Hit Me Baby One More Time' version. At the time, it wasn't my favorite idea, but I did not walk away."

UsMagazine.com also quoted Agron as saying it is the parents' responsibility to make sure their children don't have access to material they consider objectionable.

"If your 8-year-old has a copy of our GQ cover in hand, again I am sorry," she wrote. "But I would have to ask, how on earth did it get there?"