Home > Article > Web Front-end > Does the font-size attribute have inheritance_html/css_WEB-ITnose
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>It can be seen from the running performance of the above code that the font-size attribute is inherited. The original address is: http://www.51texiao.cn/div_cssjiaocheng/2015/0503/602.html
The original address is: http://www.softwhy.com/