A question about line

larryvc 2004-03-30 12:58:19
The question is:
In html,if i use <h1>context</h1> or <p>context</p> the system will add a empty line above and under the context.

If i don't want the empty line,how can i get rid of them?

can i change some properties about <h1> to make it don't add the empty line automatically?
...全文
99 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
larryvc 2004-03-30
  • 打赏
  • 举报
回复
请问有没有能够只控制一行的属性,比如说改变一行的背景色,<h1>会自动加行,谢谢了
larryvc 2004-03-30
  • 打赏
  • 举报
回复
thank you,but it seems that span can control the properties of context only,are there some others can control the whole line about context?

such as this sentence:
<span style="font-size: 15pt;
color: #f5f3f0; background-color: #333333;
font-family: arial, helvetica;
text-align: center
font-weight: bold" class="SeviceDesc">
context
</span>

it can change the properties of the context only,the other area except the context in the line will not be changed.
if i want set the background-color of the whole line of the context,how to do that?
zhongmao 2004-03-30
  • 打赏
  • 举报
回复
<span style="font-size: 34px; font-weight: bold">context</span>123123123

61,126

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧