如何解决这种问题? [英] How to fix this kind of problem?
本文介绍了如何解决这种问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
</head>
<body>
<br /><br /><br />
<div style="line-height:150%">
<span style="display:block;font-size:240%;">test</span>
</div>
</body>
</html>
首先双击文本test
,然后将其突出显示,
First double click on the text test
,then it's highlighted,
然后您可以通过萤火虫看到它所在的<span>
比文本本身短.
then you can see via firebug that the <span>
it's in is shorter than the text itself.
如何使span
随文本自动增长?
How to make the span
automatically grow with the text?
推荐答案
尝试将line-height
更改为1.5
这篇关于如何解决这种问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文