Today we have security tape to document transgressions between floors, but a century ago print cartoons presented a battle of the sexes inside elevators — men sexually harassing women and women responding with a punch in the eye.

By the middle of the 20th century, Hollywood films had taken up the theme. A quartet of movies — “Skyscraper Souls” (1932), “Ziegfeld Girl” (1941), “The Big Clock” (1948) and “The Apartment” (1960) — showed women confronting sexual harassers successfully, with a laugh. The four midcentury scenes are a primer in small reversals of power — strategies for women to mock and shame men who tried to degrade them. (In a fifth film — “Some Like It Hot” [1959] — a man dressed as a woman shows significantly less aplomb when faced with similar harassment.) Decades before feminists taught us that sexual harassment is about power, not sex, actresses such as Lana Turner and Shirley MacLaine had already shown it and figured out how to respond. Women took note: My mother, pinched on the bottom in a hotel elevator in Leningrad in 1987, pinched right back.

In retrospect, it’s clear that there are two big problems with these midcentury sexual-harassment elevator scenes. The first is that they uniformly trivialize sexual harassment. Recent years have offered more serious depictions of harassment in elevators, notably in the television show “Mad Men.” We need those depictions of the past to show us the injustice and trauma of harassment, but we also need elevator scenes to depict the future we want. Those midcentury scenes helped people imagine a world where every woman was strong enough to pinch back.

The second problem with midcentury sexual-harassment-in-elevator scenes is that they aren’t funny. The scene in “Skyscraper Souls” isn’t bad — broad physical humor as the man tries to approach the woman in a crowded elevator, the woman tries to get away and the rest of the passengers are pushed around — but the others aren’t so great:

MISS REGAN

So he looks me over fore and aft, and when he gets to my feet he says, “You’ll do my dear. I like my ankles slim too.”

OTHER ELEVATOR GIRL

Yeah, and how’d you come back?

MISS REGAN

Hard. I said, “Yeah, and how do you like your heels, mister? [Ankle, heel — get it?]

OTHER ELEVATOR GIRL

Ah, gee, that’s terrific.

“Ziegfeld Girl”

ELEVATOR PASSENGER

We’ve got nice elevators in our building too. Come on over sometime. I’ll give ya a free ride … What’sa matter? I got poison ivy?

ELEVATOR GIRL

We are not allowed to speak to people in the elevators.

GEORGE STROUD

Mr. Janoth doesn’t permit it. [A running joke about a control-freak boss.]

“The Big Clock”

MISS KUBELIK

Nineteen. Watch your step. And watch your hand, Mr. Kirkeby.

MR. KIRKEBY

I beg your pardon?

MISS KUBELIK

One of these days, I’m gonna shut these doors on you and … [Pantomimes losing a hand.]

“The Apartment”

Maybe the last one is kind of funny but not as hilarious as when the gorilla gives the finger to everyone in the elevator in Lily Tomlin’s “The Incredible Shrinking Woman” or the naked chase into the elevator in “Borat” or the elevator-masturbation fantasy scene in the second season of the television show “Louie.”

“The Apartment” is the most famous of these movies. A dark comedy by Billy Wilder (who also directed “Some Like It Hot” the year before — evidently he had a fixation on this leitmotif), it features two office workers, played by Jack Lemmon and Shirley MacLaine, who are crushed by corporate America but find solace in each other’s company. At a screening of “The Apartment” several years ago in New York City’s Bryant Park, MacLaine’s elevator punchline received moderate laughter, about equal to the joke the harasser then makes at MacLaine’s expense once he has stepped off the elevator and she can’t fight back.

The loudest, most sustained laughter of the entire screening, however, came when Dr. Dreyfuss, played by Jack Kruschen, shakes MacLaine, who has overdosed on pills, and gives her a surprisingly loud slap. After a stunned half-second of silence, peals of laughter erupted from the crowd, along with cheering and hooting. One guy yelled, “Hit her again,” two or three times. A family of Dutch tourists — mother, father and two teenage daughters — in attendance were smugly horrified; they had traveled all this way to have their worst American stereotypes confirmed, they told me afterward.

At the time, I was surprised. I had seen “The Apartment” as a critique of patriarchy; evidently I was in the minority. I’ve thought of this moment of uproarious laughter several times during the Ray Rice scandal — another moment that revealed the nonchalance and amusement with which too many Americans still view violence against women.