Most existing single domain generalization (SDG) methods focus on extending the distribution of the training data to achieve good generalizability in the target domain by synthesizing out-of-domain data. However, in practice, the generated data are insufficient to cover all possible shifts. When the target distributions are not covered, the spurious associations between irrelevant features and labels captured by a model will deteriorate the generalization performance. To alleviate this problem, in this paper, we first analyze that augmenting the source domain with samples of new styles (e.g., different backgrounds) can mitigate spurious associations between irrelevant features and labels from a causal perspective, which can reduce the interference of non-causal features on the classification labels then propose a novel Causality-inspired Domain Expansion Network (CDEN) for SDG. Specifically, CDEN contains a domain augmentation subnetwork and a representation learning subnetwork. The former uses a special style generator module AdaIN* * to generate out-of-domain data with the same semantic information but different styles from the source domain data to help the model capture true associations between discriminative features and labels. The latter introduces a novel class- level contrastive learning, instance-level contrastive learning, and invariant risk minimization to help the model further eliminate spurious associations. CDEN progressively generates diverse style data and learns domain invariant representations containing few spurious associations by optimizing the two subnetworks in an adversarial learning manner. We conduct extensive experiments on three benchmark datasets to evaluate the superiority of CDEN, comparing it to fifteen state-of-the-art methods.