小编Yio*_*iou的帖子

为什么Firefox和Edge中的填充项目的百分比填充/边距不起作用?

我想在flexbox中有一个方形div.所以我使用:

.outer {
  display: flex;
  width: 100%;
  background: blue;
}
.inner {
  width: 50%;
  background: yellow;
  padding-bottom: 50%;
}
Run Code Online (Sandbox Code Playgroud)
<div class="outer">
  <div class="inner">
    <a>hehe</a>
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

这在Chrome中运行良好.但在Firefox中,父母只挤到一行.

我如何在Firefox中解决这个问题?我使用的是44版.

您还可以在https://jsbin.com/lakoxi/edit?html,css查看代码

html css firefox css3 flexbox

15
推荐指数
1
解决办法
7602
查看次数

像Jekyll这样的静态站点生成器如何处理浏览器缓存

我对Jekyll如何工作的理解是,一旦我在本地写博客,Jekyll将生成一个页面并将其添加到某种索引系统,这样当用户加载主页面时,他们就可以看到所有帖子的列表.是对的吗?但是,它如何处理浏览器缓存.一旦我添加了新帖子,我们如何阻止浏览器使用缓存索引并使其每次都获取新索引.或者我说的完全是胡说八道?

browser caching static-site jekyll

4
推荐指数
1
解决办法
2247
查看次数

在C++中重载operator时"const"是什么意思

我看到类似的东西:

const char& operator[] (int Index) const
Run Code Online (Sandbox Code Playgroud)

const我明白的第一个.这是为了保护回归char不受修改.

但是第二个const意思是什么呢?为什么我们有时会使用两个const,有时只使用一个?

c++ const operator-overloading

3
推荐指数
1
解决办法
382
查看次数