Kenley Jansen allowed two home runs in the same game for the first time in his career.
The loss snapped a five-game home winning streak the Dodgers had over the Nationals. Josh Beckett lasted just three innings in defeat.
The Dodgers won a second straight game for the first time since Apr. 25-26 against the Mets and Brewers.
The Dodgers have lost their last five one-run games, and eight straight games overall, their longest losing streak since 2008.
The Dodgers are 5-16 against the National League West and have lost seven straight games against divisional foes.
The Dodgers fall to 5-14 against the National League West, including 2-8 at home. They have been outscored 99-57 in divisional play this season.
Once down 5-0 and 6-1, the Dodgers eventually held, and blew two leads on Saturday night, and suffered their third straight loss.
The Dodgers fell to 60-58 all-time at AT&T Park, as they remain the only visiting team with a winning record at the Giants' home park.
In addition to Hyun-jin Ryu's 12 strikeouts and Hanley Ramirez homering in his first game back, the first three batters in the Dodgers lineup (Jerry Hairston, Nick Punto, and Matt Kemp) combined for seven hits, three runs scored, and three RBI.
Clayton Kershaw was magnificent and Carl Crawford provided the offense, leading the Dodgers to a 2-0 win over the Brewers in the series finale on Sunday afternoon at Dodger Stadium.
The Dodgers have not gotten a win from their starting pitcher since Hyun-jin Ryu picked up the victory on Apr. 13, a span of 12 games.
Gonzalez had two doubles and three RBI on the night, and his career .678 slugging percentage against Milwaukee is the fourth-highest all-time mark against the Brewers, trailing only Barry Bonds (.821, LOL), Mike Piazza (.693), and Albert Belle (.686)
Hyu-Jin Ryu went seven strong innings, the offense did just enough, and the Dodgers took the series in New York with a 3-2 victory over the Mets.
The Dodgers snapped a five-game winning streak at Citi Field with their loss to the Mets on Wednesday night in New York.
Mark Ellis had four hits and two home runs to deliver a 7-2 Dodgers win over the Mets in the opener of a three-game series Tuesday night at Citi Field.