JavaScript small() 方法
定义和用法
small() 方法用于把字符串显示为小号字。
语法
stringObject.small()
实例
在本例中,"Hello world!" 将显示为小号字:
<script type="text/javascript"> var str="Hello world!" document.write(str.small()) </script>
本文介绍了 JavaScript 中的 small() 方法,该方法可以将字符串显示为小号字体。通过实例演示了如何使用 document.write() 结合 small() 方法来实现文本的小号显示效果。
small() 方法用于把字符串显示为小号字。
stringObject.small()
在本例中,"Hello world!" 将显示为小号字:
<script type="text/javascript"> var str="Hello world!" document.write(str.small()) </script>

被折叠的 条评论
为什么被折叠?