如何更改HTML字符串中的字体大小? [英] How to change font size in HTML string?
本文介绍了如何更改HTML字符串中的字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用了一个在线HTML制造商来获取这个
I used an online HTML maker to get this
<p><span style=\"font-family: arial, helvetica, sans-serif; font-size: x-large; color: #993300;\">A <strong>canyon</strong> is a deep, narrow valley with steep sides. Many canyons have rivers or streams running through them.</span></p>
但字体大小太小,当我在html制作器中放置更大的尺寸并复制它到我的代码,它仍然显示相同的大小。我在Web视图中使用它来显示一些带有自定义格式的文本。
But the font size is too small, and when I put a bigger size in the html maker and copy it to my code, it still shows up the same size. I'm using it in a web view to show some text with customized formatting.
推荐答案
您可以将实际值 font-size
属性,例如 font-size:48px
。如果你输入一个足够大的数字,它应该显示大于使用 x-large
。
You can put an actual value in the font-size
property, for example font-size:48px
. If you put in a large enough number, it should show up larger than using x-large
.
这篇关于如何更改HTML字符串中的字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文