Skip to content

[html] 第108天 在默认的情况下,使用h1标签呈现出什么效果? #1013

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

Open
haizhilin2013 opened this issue Aug 1, 2019 · 9 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第108天 在默认的情况下,使用h1标签呈现出什么效果?

@haizhilin2013 haizhilin2013 added the html html label Aug 1, 2019
@NicholasBaiYa
Copy link

h1: 块级元素,体字加黑加粗,字号:24px。

@haizhilin2013
Copy link
Collaborator Author

h1: 块级元素,体字加黑加粗,字号:24px。

@NicholasBaiYa 是“字体”
image

@EragonBubble
Copy link

display: block;
font-size: 2em;
font-weight: bold;

@xxf1996
Copy link

xxf1996 commented Aug 2, 2019

我在chrome上看到是这个效果:

h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

当然,有的地方使用font-size: 2rem;来控制h1标签的字体大小;

@yuanlin-L
Copy link

display:block;
font-size:32px;
font-weight:700;
height:42px;

@shuai4983958
Copy link

h1,字体24px,粗体,块级标签

@nowherebutup
Copy link

nowherebutup commented Aug 2, 2019

font-size: 2em;
font-weight: bold;
display:block;

@wood240
Copy link

wood240 commented Aug 3, 2019

加粗
默认32px
默认有上下外边距

@qp97vi
Copy link

qp97vi commented Aug 8, 2019

h1标签
默认:加粗 块状元素
字体大小:font-size:2em 未经过调整的浏览器大小是 32px

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

9 participants