我试图<button>用flexbox的中心元素的中心元素justify-content: center.但Safari并不以它们为中心.我可以将相同的样式应用于任何其他标记,并且它按预期工作(请参阅<p>-tag).只有按钮左对齐.
尝试Firefox或Chrome,您可以看到差异.
是否有任何用户代理样式我必须覆盖?或者这个问题的任何其他解决方案?
div {
display: flex;
flex-direction: column;
width: 100%;
}
button, p {
display: flex;
flex-direction: row;
justify-content: center;
}Run Code Online (Sandbox Code Playgroud)
<div>
<button>
<span>Test</span>
<span>Test</span>
</button>
<p>
<span>Test</span>
<span>Test</span>
</p>
</div>Run Code Online (Sandbox Code Playgroud)
还有一个jsfiddle:http: //jsfiddle.net/z3sfwtn2/2/
有没有办法从extuging中排除boost源代码(或任何其他)?我不想介入提升内部源代码.
例如:
boost::shared_ptr<Xyz> xyz(new Xyz());
xyz->someMethod();
Run Code Online (Sandbox Code Playgroud)
当我想进入Xyz::someMethod()使用F11时,调试器boost/shared_ptr.hpp在我得到之前先进入into Xyz::someMethod()