Any bridge which crosses the line between counties, unless otherwise specially provided for, shall be constructed by the counties into which such bridge reaches. Each of the counties into which any such bridge reaches shall pay that portion of the expense of the bridge previously agreed upon by the boards of supervisors of such counties, even though such bridge reaches within the limits of a city.