Tech stocks on Monday continued to get whacked for a fourth straight day as investors braced for a possible trade war with China under a Donald Trump presidency.

A get-tough strategy with China could lead to stiff tariffs being placed on products imported from that country — hurting sales.

Tech giants like Apple, Facebook, Amazon and Alphabet are down sharply since Trump’s Nov. 8 victory.

Apple shares bore the brunt of the downdraft on Monday, falling 2.5 percent, after a government-controlled newspaper in China warned that “iPhone sales will suffer a setback” if Trump follows through on campaign threats to “wreck” US-China trade relations.

The NYSE-listed shares of Alibaba, the Chinese e-commerce giant led by billionaire Jack Ma, were also battered, falling 3.5 percent — and are down more than 10 percent since Election Day.

The Apple selloff came despite pleas from analysts that the iPhone maker, which holds more than $230 billion in cash overseas, could be the biggest beneficiary of Trump’s proposal to dangle tax breaks for companies looking to repatriate their holdings.

Shares of Amazon — whose billionaire boss Jeff Bezos had joked before the election about using one of his rockets to send Trump into space — lost 2.7 percent Monday, to close at $719.07.

That capped a losing streak that has left Amazon down 8.7 percent since Trump’s election — a bloodbath that slashed nearly $6 billion from Bezos’s paper wealth, leaving him with just $62.9 billion.

Elsewhere, shares of Facebook and Google parent Alphabet may have gotten slammed simply because they were tech stocks, as money managers dumped them to chase more Trump-friendly sectors, including banks, pharmaceuticals and defense.

“It appears to be a bit of a rotation among sectors,” said Kevin Walkush, portfolio manager at Jensen Investment Management.

Also hard hit were Tesla Motors and SolarCity, whose proposal to merge is coming to a vote later this week.