在html中设置极小的字体大小

时间:2018-01-25 09:18:41

标签: javascript html css

有没有办法将字体大小缩小到极小的范围?例如。在0.001pt或甚至很小的范围内。

4 个答案:

答案 0 :(得分:0)

可能,你可以使用rem例如:

font-size: 0.01rem;

在此处查看CodePen:https://codepen.io/fennefoss/pen/VyJPxq

答案 1 :(得分:0)

试试吧我会说:

<!DOCTYPE html>
<html>

<body style="font-size:0.001pt;">
The content of the body element is displayed in your browser.
</body>

</html>

答案 2 :(得分:0)

您也可以使用px

font-size: 5px;

或者你想要的任何价值......

答案 3 :(得分:0)

你的问题不明确。根据我的理解,不可能将字体大小减小到该范围。通过说'不可能',我的意思是在1px之后会有进一步减小的尺寸。