Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 我们如何创建图像网格,即:图库_Html_Css_Responsive Design_Gallery_Photos - Fatal编程技术网

Html 我们如何创建图像网格,即:图库

Html 我们如何创建图像网格,即:图库,html,css,responsive-design,gallery,photos,Html,Css,Responsive Design,Gallery,Photos,这是另一种画廊。 这是一把小提琴 当页面加载时,您会看到标题和100%高度和宽度的大图像。 我希望它滚动,图像结束和橙色部分开始的部分,带有文本“公文包”的部分,我希望下面的6幅图像和橙色部分100%适合页面。 这意味着从橙色部分开始到走廊末端的高度必须为100%。 这里的问题是图库没有100%适合屏幕,并且被缩短了或类似的东西。 如何使画廊图像具有100%的高度和宽度。 我曾经 HTML 我没有得到你所期望的。但是,如果您想显示六个覆盖整个浏览器区域的图像,请尝试在HomePortfolioL

这是另一种画廊。
这是一把小提琴
当页面加载时,您会看到标题和100%高度和宽度的大图像。 我希望它滚动,图像结束和橙色部分开始的部分,带有文本“公文包”的部分,我希望下面的6幅图像和橙色部分100%适合页面。
这意味着从橙色部分开始到走廊末端的高度必须为100%。
这里的问题是图库没有100%适合屏幕,并且被缩短了或类似的东西。
如何使画廊图像具有100%的高度和宽度。
我曾经 HTML


我没有得到你所期望的。但是,如果您想显示六个覆盖整个浏览器区域的图像,请尝试在HomePortfolioLeft、HomePortfolioright和HomePortfoliocenter中进行更改

  height:33.33%;


我自己找到了答案。
因为公文包文本div为8%,所以我将图像的左、右、中高度改为46%。
更新小提琴

CSS


使用浮动非常有用,但在使用可变高度图像或使用边距时会遇到麻烦,为了获得功能强大且用户友好的网格,我建议您使用同位素,或者更好地使用实现同位素v2的插件非常简单:

不是这样,但您的答案最终让我找到了正确的解决方案,所以谢谢:请提供更多关于你的答案和你期望的细节。因此,其他成员也将受益
.HeadingBar {
    display:table;
    width:100%;
    height:8%;
    background-color:tomato;
}
.HeadingBarText {
    display:table-cell;
    vertical-align:middle;
    padding-left:30px;
    font-size:30px;
    font-family:Helvetica, Arial, sans-serif;
}
.PortfolioMain {
    width:100%;
    height:100%;
}
.Portfolio {
    width:100%;
    height:100%;
    margin:0;
    padding:0;
}
.HomePortfolioLeft {
    width:33.33%;
    height:33.33%;
    margin:0;
    padding:0;
    float:left;
}
.HomePortfolioCenter {
    width:33.33%;
    height:33.33%;
    margin:0;
    padding:0;
    float:left;
}
.HomePortfolioRight {
    width:33.33%;
    height:33.33%;
    margin:0;
    padding:0;
    float:left;
}
  height:33.33%;
  height:100%;
.HeadingBar {
    display:table;
    width:100%;
    height:8%;
    background-color:tomato;
}
.HeadingBarText {
    display:table-cell;
    vertical-align:middle;
    padding-left:30px;
    font-size:30px;
    font-family:Helvetica, Arial, sans-serif;
}
.PortfolioMain {
    width:100%;
    height:100%;
}

.HomePortfolioLeft {
    width:33.33%;
    height:46%;
    margin:0;
    padding:0;
    float:left;
}
.HomePortfolioCenter {
    width:33.33%;
    height:46%;
    margin:0;
    padding:0;
    float:left;
}
.HomePortfolioRight {
    width:33.33%;
    height:46%;
    margin:0;
    padding:0;
    float:left;
}