Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Thinking] 搞不懂的p && span标签 #4

Open
4 tasks
ouuz opened this issue Oct 1, 2019 · 0 comments
Open
4 tasks

[Thinking] 搞不懂的p && span标签 #4

ouuz opened this issue Oct 1, 2019 · 0 comments
Labels
Thinking thinking

Comments

@ouuz
Copy link
Contributor

ouuz commented Oct 1, 2019

第 2 天
今天小张同学想在浏览器中展现摘抄的散文,她分别使用了p标签和span标签来展示。正当她洋洋得意的时候,路过的王老板调出控制台,指着两处(如图,即p标签和span标签 content 内显示的宽高,分别为图一图二)问道:”为什么同样一段话 用不一样的标签 content 占的宽高就不一样了捏?“

图一 使用的是p标签:

TIM图片20191002013348

图二 使用的是span标签:

TIM图片20191002013354

请你帮帮小张同学,向讨厌的王老板

  • 解释原因
  • 二者本质区别
  • 与p/span标签是相同类型的其他标签(举出五个即可)
  • 该在什么情况下使用哪一种类型的元素(块级/内联)
@ouuz ouuz added the Thinking thinking label Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Thinking thinking
Projects
None yet
Development

No branches or pull requests

1 participant