The Facebook posts were crass and left no doubt the authors did not approve of the attire that some people wore to Family Court in Queens.

“Bra tops n butt cheeks! Somebody come look at this!!” the caption read above a photo of a young woman in a pink short set that had pink sheer draping on either side as if to make a skirt.

“From the back! I took it for you!” read the caption of another photo of the same woman that was taken from behind. A grateful commenter responded, “Good work!!!!”

The disparaging banter was the kind of back-and-forth seen on social media and celebrity gossip sites, but it was apparently an exchange among three lawyers of the Administration for Children’s Services, the city’s child welfare agency, and one from the Legal Aid Society, which represents many children and parents in court proceedings. It was unclear whether the people ridiculed in the Facebook posts were involved in the lawyers’ cases, but David Hansell, the commissioner of A.C.S., said that whoever the people were, the conduct of lawyers was unacceptable.