gpt4 book ai didi

html - 这是一个 CSS 错误吗?左边框不显示

转载 作者:行者123 更新时间:2023-11-27 23:53:54 27 4
gpt4 key购买 nike

我有以下问题:当我第一次选择两个框之一时,左边框丢失(Google Chrome 36);在我选择另一个后,左边框出现。JSFIDDLE:

 http://jsfiddle.net/emrfcuu7/

观察到编译代码后立即 - 选择两个框之一时,左边框缺少;这是错误还是我做错了什么?

@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,300,400,600,700,800);
.main {
position: relative;
background-color: #16A085;
width: 550px;
height: 350px;
}

.mainRibbon {
position: relative;
background-color: #ECF0F1;
width: 70%;
height: 60%;
margin: 0 auto;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
border-radius: 6px;
}

.textBoxStyle {
position: relative;
border: 1px solid rgba(26, 188, 156, 0);
border-radius: 4px;
width: 80%;
text-indent: 20px;
box-shadow: none;
-webkit-box-shadow: none;
line-height: 1.4285;
-webkit-transition: border-color .25s linear;
transition: border-color .25s linear;
margin: 6% 10% 0 10%;
padding-top: 6px;
padding-bottom: 6px;
}

.textBoxStyle:focus {
outline: 0;
border-color: rgba(26, 188, 156, 1);
}

.btnLogin {
background-color: #16A085;
width: 80%;
border-radius: 6px;
margin: 6% 10% 0 10%;
-webkit-transition: background .25s linear;
transition: background .25s linear;
}

.btnLogin:hover {
background-color: #1ABC9C;
cursor: pointer;
cursor: hand;
}

.btnLogin>p {
color: white;
margin: 0;
padding-top: 1%;
padding-bottom: 1%;
font-family: 'Open Sans';
-webkit-font-smoothing: subpixel-antialiased;
font-size: 17px;
text-align: center;
}

.icon {
position: absolute;
background: rgba(0, 0, 0, 0);
width: auto;
height: auto;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}

.icon>p {
color: white;
font-size: 60px;
line-height: 60px;
padding: 0;
margin: 0;
}


/*de sters
.test{
position:relative;
background-color:blue;
width:80%;
height:30%;
top:50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}*/
<div class="main">
<div class="icon">
<p class="text icon">&#61584;</p>
</div>
<div class="mainRibbon">
<input type="text" class="textBoxStyle" placeholder="Enter your username">
<input type="text" class="textBoxStyle" placeholder="Password">
<div class="btnLogin">
<p>Log in</p>
</div>
</div>
</div>

最佳答案

问题解决:问题是“left-margin”落在半像素上,无法显示;我将“宽度”从“.main”从“550px”更改为“560px”,现在左边距显示完美;

感谢所有建议根据我的风格设计“大纲”样式的人;这是一个很好的解决方案,只是轮廓不能像我想要的那样有圆 Angular 。

关于html - 这是一个 CSS 错误吗?左边框不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25242062/

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