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!