Home  >  Article  >  Web Front-end  >  How to implement adaptive font size in html

How to implement adaptive font size in html

零到壹度
零到壹度Original
2018-03-21 13:27:4314866browse

This article mainly analyzes how to implement font size adaptation in HTML. Friends who need it can refer to it. I hope it can help everyone. Let’s take a look with the editor below.

<!DOCTYPE html
<html>
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
</head>
<style type="text/css">
        table { font-size: 1vw;}
    </style>
<body border=1 style="border:1px solid red;">
<h4>一行三列:</h4>
<table border="1" width="100%">
<tr>
  <td width=33%>100100100100100100100100100100100300300300300300</td>
  <td width=33%>200200200200200200200200200200200200200200200200</td>
  <td width=33%>300300300300300300300300300300300300300300300300</td>
</tr>
</table>
</body>
</html>

Related recommendations:

Font size adaptive pure CSS solution

h5 Font size adaptive pure CSS solution plan

The above is the detailed content of How to implement adaptive font size in html. For more information, please follow other related articles on the PHP Chinese website!

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