Home  >  Article  >  Web Front-end  >  Does the font-size attribute have inheritance_html/css_WEB-ITnose

Does the font-size attribute have inheritance_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:40:441383browse

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/

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn