-
Notifications
You must be signed in to change notification settings - Fork 5
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
Introhsn #11
base: master
Are you sure you want to change the base?
Introhsn #11
Conversation
margin:auto; | ||
} | ||
|
||
.photo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还是和对大蓉儿一样的建议,尽量用独特的类名 “.hsn-photo” 或一个父类".hsn .photo" 去限制你的css生效的范围,我去看了一下大蓉儿的css,里面也有一个class叫photo,当大家的html整合在同一个文件之后,你们各自的.photo css会互相影响,导致混乱。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good review ! So nice Tang
</head> | ||
|
||
<body> | ||
<div class="overall"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其实我们并不需要 overall
这个 div
,因为功能上和 body
是等价的
@@ -0,0 +1,71 @@ | |||
|
|||
.overall { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这边其实直接选择 body
设置样式规则就可以了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我这里主要先关注一下代码样式和规范问题。🙃
margin:auto; | ||
} | ||
|
||
.photo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good review ! So nice Tang
height: 356.1px; | ||
margin: auto; | ||
margin-bottom: 124.9px; | ||
object-fit: contain; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
学姐我们这里还是严格要求代码规范。这行 object-fit
前面多了一个空格 (
)
object-fit: contain; | ||
} | ||
.first { | ||
width:854px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有这里 width: 854px;
,中间也需要一个空格。
border-style:solid; | ||
border-color:black; | ||
} | ||
.second{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里也是,.second
和 {
之间也需要空格 (
)
clear:both; | ||
} | ||
.content_sty{ | ||
font-family: PingFangSC; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有这里我们书写 css 属性时,每条属性应该一行,同时应该有两个空格的缩进。
eg:
.content_sty {
font-family: PingFangSC;
font-size: 18px;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
从师姐的代码里看到了"table-call" 属性,这应该也可以解决我的问题啦,ღ( ´・ᴗ・` )比心
界面整体写好,仍有一些小细节还未完善