我有一个奇怪的错误,似乎一直keep绊绊,我想知道这里实际发生了什么。我有一个带有两个子div(flex:1)的flexbox容器(行包装)。当我有一个我不想换行的标题(空格:nowrap)时,IE 11的div不尊重其宽度,而是缩小到小于标题宽度。这似乎在Chrome中可以正常使用,但Safari和IE似乎不尊重标题的宽度。这里发生了什么?
这是js bin:https : //jsbin.com/bowodiz/edit?css,输出
为了方便起见,我在下面放置了主要样式和标记。
HTML:
<div class="flex-container">
<div class="left">
<div class="heading">Here is a heading that shouldn't wrap</div>
<div class="sub-text">This is just some content that should wrap just fine ..</div>
</div>
<div class="right">
<div class="heading">Here is a heading that shouldn't wrap</div>
<div class="sub-text">This is just some content that should wrap just fine ...</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS(部分):
.flex-container {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.flex-container > div {
flex: 1;
}
.heading {
white-space: nowrap; …Run Code Online (Sandbox Code Playgroud) 我正在尝试链接到 Visual Studio Code 内的 .css 文件,因为我正在学习 Pluralsight 课程。我看到演示者将 .css 文件拖到 index.html 文件中,并像 Visual Studio 一样在头部创建了链接。但对于我的一生,我无法让它发挥作用。有人知道怎么做吗?
我正在节点中创建一个服务来验证我们公司依赖的所有域的所有证书的状态。最初我们只关心到期日期,但稍后可能需要更多信息。我可以通过以下方式检索最低级别证书的适当详细信息
var https = require('https');
var options = {
host: 'google.com',
port: 443,
method: 'GET'
};
const request = https.request(options, function(res) {
console.log(res.connection.getPeerCertificate());
});
request.end();
Run Code Online (Sandbox Code Playgroud)
但我希望获得证书链中每个证书的详细信息。这在nodejs中怎么可能?
即对于 google.com,我想获得每个的完整详细信息
Google Trust Services - GlobalSign CA-R2 -> GTS CA 101 -> www.google.com
Run Code Online (Sandbox Code Playgroud)
我想我可以递归地调用每个证书的颁发者,但不太确定如何或是否可能。