In one issue of the comic Gold Digger, the character of Stripe is repeatedly hit by various painful booby traps in an old temple. Due to his relative ability to take damage, he is merely put in increasing levels of Instant Bandages. (At one point, they forget to give him a hole to breathe through!) His wife Brittany, a werecheetah who can bench press Mack trucks, gets a little angry when she finds out.
Wolverine occasionally comes in for this, thanks to his Mutant Healing Factor (TM). One of the more notable examples was a pitch-black parody about chainsaw-wielding midget mafiosi that culminated in the Punisher parking a steamroller on top of Wolverine.
In Marvel Ultimate Team-Up, Spider-Man rescues a severely injured Wolverine and recommends a hospital, only for Wolvie to brush him off and heal up almost instantly, resulting the hilarious line, "Oh my god I think I'm going to throw up in my mask."
Deadpool took more punishment in funny, amusing or plain crazy ways and he is still wise-cracking.
He also does this to poor Mr Immortal of the Great Lakes Avengers. So does almost everyone who they face off against, and this is on top of his own death wish, which is played for amusement.
Basile always gets hurt in Léonard le Génie, either because of his clumsiness or his master's sadism.
Happens regularly to Slapstick, whose indestructible cartoon-like body allows him to recover almost instantly.
Ditto for Plastic Man whenever he appears. Batman seems particularly fond of hurting him.
Sin City has the death of Jack Rafferty, which is probably one of the most gruesome deaths in the series (which is saying something) but also the funniest. His dialogue helps.
Often in the stories by Wilhelm Busch, up to Amusing Death. Note that these stories are more than 100 years old, and even decades older than The Yellow Kid, often said to be the first comic.
In Astérix, whenever our heroes go up against the legionaries, the legionaries end up with these. Often they are punch-drunk, to boot.
This happens all the time in Beelzebub. We've got Oga being beaten by Hilda and electrocuted by Beelz, the random mooks Oga pummels, the perverted Tengu Aoi has to deal with, and everything that happens to Furuichi.
A large portion of Tintin humor comes from Captain Haddock tripping or hitting his head.This is lampshaded in Destination Moon.