【发布时间】:2019-03-12 07:08:23
【问题描述】:
我正在设计我的登录页面。我添加了按钮背景颜色,它在 chrome 和 firefox 上完美显示,但在 microsoft edge 上没有显示。下面是我的 HTML 和 CSS, 注意 - 我尝试了很多颜色,都在 chrome 和 firefox 上工作,但不是在边缘
HTML
.index-un-right-nav-buttom{
float: left;
height: auto;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
}
.index-un-right-nav-submit-button{
float: left;
padding-top: 5px;
padding-bottom: 5px;
height: 50px;
width: 100px;
margin-top: 20px;
margin-bottom: 20px;
margin-left: 10%;
border: none;
outline: none;
color: #ffffff;
background-color: #007182fb;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
border-radius: 50px;
}
<span class="index-un-right-nav-button">
<button class="index-un-right-nav-submit-button">Login</button>
</span>
【问题讨论】:
-
您必须设置 6 位十六进制颜色,所以请尝试不使用
fb:rapidtables.com/convert/color/hex-to-rgb.html
标签: html css google-chrome firefox microsoft-edge