Is the font-size attribute inherited? Set the font for the elements within the tag. A definite answer can be given here. The font-size data is inherited, which is conducive to the unified setting of web fonts.
The code example is as follows:
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="author" content="http://www.51texiao.cn/" /><title>蚂蚁部落</title><style type="text/css">body{ font-size:12px;}</style></head><body><div>蚂蚁部落</div><div> <ul> <li>太阳出来了</li> </ul></div></body></html>
The original address is: http://www.softwhy.com/