Although dietary factors have been examined as potential risk factors for liver cancer, the evidence is still inconclusive. Using a diet-wide association analysis, our research evaluated the associations of 126 foods and nutrients on the risk of liver cancer in a Chinese population. We obtained the diet consumption of 72,680 women in the Shanghai Women’s Health Study using baseline dietary questionnaires. The association between each food and nutrient and liver cancer risk was quantified by Cox regression model. A false discovery rate of 0.05 was used to determine the foods and nutrients which need to be verified. Totally 256 incident liver cancer cases were identified in 1,267,391 person-years during the follow-up duration. At the statistical significance level (P ≤ 0.05), higher intakes of cooked wheaten foods, pear, grape and copper were inversely associated with liver cancer risk, while spinach, leafy vegetables, eggplant and carrots showed the positive associations. After considering multiple comparisons, no dietary variable was associated with liver cancer risk. Similar findings were seen in the stratification, secondary and sensitivity analyses. Our findings observed no significant association between dietary factors and liver cancer risk after considering multiple comparisons in Chinese women. More evidence is needed to explore the associations between diet and female liver cancer occurrence.