那就给它加上css属性啊
参照代码<html>
<head>
<style type="text/css">
p.spread {word-spacing: 30px;}
p.tight {word-spacing: -0.5em;}
</style>
</head><body>
<p class="spread">This is some text. This is some text.</p>
<p class="tight">This is some text. This is some text.</p>
</body>
</html>
参照代码<html>
<head>
<style type="text/css">
p.spread {word-spacing: 30px;}
p.tight {word-spacing: -0.5em;}
</style>
</head><body>
<p class="spread">This is some text. This is some text.</p>
<p class="tight">This is some text. This is some text.</p>
</body>
</html>
解决方案 »
- 如果说我把书看完了,可以自己写东西了。我可以写东西在手机上运行吗?
- 从LinkedList 中取对象的问题??
- Java中对JTABLE进行行的插入有什么简单方法?
- java.lang.ArrayIndexOutOfBoundsException: 1错误
- JAVA新手问PATH问题
- java Swing TableCellEditor
- 求助~如何在socket不断的情况下,收发16进制的数据?
- 就没人知道吗——JBuilder中调用dll
- 请问如何打开.db文件?
- 关于HashSet添加元素问题,大神来帮我看看
- thinking in java一个示例程序运行出错,无法找到原因啊。。。求助
- java链接数据库问题
用这个试试Font f =new Font("宋体",Font.BOLD,20);