@model Customer
@Html.Partial("_UserProfile", (UserProfile)Model.UserProfile)
Run Code Online (Sandbox Code Playgroud)
当我运行此代码时,我收到此错误:
The model item passed into the dictionary is of type 'Customer', but this dictionary requires a model item of type 'UserProfile'.
Run Code Online (Sandbox Code Playgroud)
部分视图_UserProfile是强类型的.
我希望能够编辑这些字段.有什么建议?
我们在iPad和Mac上遇到了一个问题,我们真的很讨厌.
我们正在使用bootstrap,并使用.col-xs-12.col-sm-5.col-md-3类在.row中创建了9个元素.
在.row上我们使用以下css应用了.flex-start类:
.flex-start {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
Run Code Online (Sandbox Code Playgroud)
在safari中,第一个弹性行仅包含3个项目.
这里的示例和截图在这里.你必须在Mac或iPad上进行野生动物园游戏
将col-md-3的宽度设置为24.9%可以解决这个问题,但我们不希望这样.
有没有其他人遇到这个问题,并知道修复?