Deformation of family of divisors Given a family of complex compact surfaces $X \to B$ over a smooth curve $B$ and a one-dimensional family of effective Cartier divisors $\{D_t\}$ in the central fiber $X_0$. For simplicity, let's just assume that $X$ and $X_0$ are smooth. I would like to know what are sufficient conditions that guarantee the existence of a one-dimensional family of (effective Cartier) divisors $\{\Delta_t\}$ in $X$ such that:


*

*$\{\Delta_t\} \cap X_s$ is again a family of divisor in $X_s$ for all $s \in B$;

*$\{\Delta_t\} \cap X_0$ coincide with $\{D_t\}$.


If such an extension doesn't exist, can we just do some base change of $B$ to ensure the existence of $\{\Delta_t\}$?    
 A: Before trying to deform the family of divisors, it makes sense to first consider deforming even a single divisor $D_0$ from $X_0$ to the family $X$.  This is not possible in general: the cycle class $c_0$ of $D_0$ is a $(1,1)$-form in $H^2(X,\mathbb C)$, but when you deform the cycle class to nearby fibres $X_s$ (via the Gauss--Manin connection) the class $c_s \in H^2(X_s,\mathbb C)$ may no longer be a $(1,1)$-class. Indeed, this is the unique obstruction to deforming $D_0$ in the family. (This is called the variational Lefschetz $(1,1)$-theorem; it is variation on the usual Lefschetz $(1,1)$-theorem, and can be proved in a similar way.)
A basic example would be to let $E_s$ be a non-trivial family of elliptic curves for which $E_0$ is CM, by $\mathbb Z[\sqrt{-D}]$ say, and then to let $X_s := E_s \times E_s$.  In $X_0$ we have a divisor $D_0$ given by the graph of $\sqrt{-D}$, which does not deform to the nearby $X_s$, since $E_s$ will not be CM for nearby curves $E_s$ (since the family is non-trivial).
Note that this cohomological obstruction can't be removed just by making a base-change in the parameter space $B$.

Just to record it, another example can be obtained by considering families of $K3$ surface.  The generic Neron--Severi rank of a K3 is $1$, but it can get all the way up to $20$.  So if we start with a K3 of NS rank $> 1$ and deform it, the NS rank will drop back to $1$ at nearby K3's, and so there will be divisors on the original surface which don't deform.
