The purpose of this study is to explore the relationship between parents' phubbing behavior and children's online gaming time. More importantly, we investigated the mediating role of electronic health literacy in this association. A total of 1200 questionnaires were sent out and 1130 effective questionnaires were returned, an effective recovery of 94.17%. As some students did not answer part of the EHL survey, eventually only 867 students were included in this study based on the selected independent variables and the degree of questionnaire completion. Both tools used for measuring parental phubbing and electronic health literacy passed confirmatory factor analyses. To analyze the mediating effect of electronic health literacy on parental phubbing behavior and online gaming time, 5000 datapoints were sampled using the Bootstrapping method. The results indicated that parents' phubbing was positively related to their children's online gaming time, which was mediated by electronic health literacy, parental phubbing is positively and significantly correlated with electronic health literacy, and electronic health literacy is negatively and significantly correlated with online gaming time among adolescents. Electronic health literacy partially mediates the relationship between parental phubbing behavior and adolescent online gaming time, and Chinese students' electronic health literacy is a two-dimensional structure consisting of health information acquisition and application. This study is the first empirical study to explore the relationship between parental phubbing behavior and the amount of time adolescents spend playing games online.