Juan Pierre, Ramirez's replacement in left field, hit a tiebreaking two-run single in the seventh inning, and the Dodgers rallied from a three-run deficit to beat the slumping Florida Marlins 6-4 on Friday night.
Los Angeles' third consecutive victory came hours after Ramirez apologized to his teammates at the team hotel. It was his first time with the Dodgers since being suspended for 50 games for using a banned substance.
The Dodgers upped the best record in the majors to 25-12, and improved to 4-4 without Ramirez. The Marlins lost their fifth straight game and are 6-18 since starting the season 11-1.
With the score 3-all, James Loney led off the Dodgers' seventh with a single. Kiko Calero came on and walked Matt Kemp and pinch-hitter Mark Loretta to load the bases, and Pierre singled.
Pierre also scored a run and finished 2 for 4 to hike his average to .391.
Casey Blake and pinch-hitter Xavier Paul hit back-to-back homers for Los Angeles in the sixth.
Cody Ross homered for Florida, and Hanley Ramirez extended his hitting streak to 12 games with an RBI double.
Jonathan Broxton walked two in the ninth but retired pinch-hitter Russ Gload on a flyout with runners at second and third for his ninth save in 11 chances.
Los Angeles starter Eric Stults needed 96 pitches to get through five innings and departed trailing 3-0. Jeff Weaver (2-0) pitched a scoreless sixth.
Marlins starter Chris Volstad (2-3) lost his third start in a row. He took a one-hitter into the sixth but retired only three more batters and gave up four runs, two on homers.
Florida has allowed nine homers in the past four games.
With the Marlins trailing 5-4, an umpire reversal went against them in the eighth, prompting two ejections. With a runner on first and none out, Dan Uggla squared to bunt and was hit on the right hand by a pitch from Cory Wade. Plate umpire Joe West awarded Uggla first base, but first base umpire Ed Rapuano said Uggla was swinging and sent him back to the plate.