gpt4 book ai didi

html - 如何在火狐中设置边框

转载 作者:太空宇宙 更新时间:2023-11-04 13:48:24 25 4
gpt4 key购买 nike

我有一些 css 代码用于 html 页面,如下所示

<style>
body{
border-width: 8px;
border-style: solid;
border-color: #045FB4;
margin:0px;
}
</style>

在 IE 和 Chrome 中,当我将该页面用作我网站的弹出窗口时,它会准确显示。但是如果我在 firefox 中使用相同的页面,它的底部边框不是底部它是 8% 以上意味着不准确的 Angular 落。

如果我使用 firefox 显示页面,我需要建议如何设置边框。

我试过了

 margin-bottom:-65px;//in css

它很好,在 firefox 中工作得很好,但对于其他浏览器,它添加了一个滚动条。

最佳答案

好吧...首先它看起来很奇怪...因为 jsfiddle 也表现出相同的行为

然后我将 heightwidth 添加到父包装器中:

html{
width:100%;
height:100%;
}

它似乎有效 demo

旁注:

也给 body height width :

width:100%;
height:100%;

然后使用单线样式:

 border: 8px solid #045FB4; /* same as what u wrote in 3 lines */

关于html - 如何在火狐中设置边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22376494/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com