Skip to content

Conversation

@hsngithub
Copy link

界面整体写好,仍有一些小细节还未完善

@hsngithub hsngithub requested a review from pftom June 28, 2018 11:36
@pftom pftom requested review from dearonger, mrcfps and tomwenthey June 28, 2018 12:23
margin:auto;
}

.photo {
Copy link
Contributor

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会互相影响,导致混乱。

Copy link
Contributor

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">
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这边其实直接选择 body 设置样式规则就可以了

Copy link
Contributor

@pftom pftom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我这里主要先关注一下代码样式和规范问题。🙃

margin:auto;
}

.photo {
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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{
Copy link
Contributor

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;
Copy link
Contributor

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;
}

Copy link
Contributor

@dearonger dearonger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

从师姐的代码里看到了"table-call" 属性,这应该也可以解决我的问题啦,ღ( ´・ᴗ・` )比心

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants