gpt4 book ai didi

css - Michael Hartl Rails 教程 - CSS 未正确渲染

转载 作者:行者123 更新时间:2023-12-02 17:59:58 24 4
gpt4 key购买 nike

我已经完成了本教程,但自第 7 节制作注册表单以来,我在 CSS 渲染方面遇到了一些小问题。这就是我得到的:

enter image description here

它应该是这样的:

enter image description here

这是相关的 CSS:

@mixin box_sizing {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

input, textarea, select, .uneditable-input {
border: 1px solid #bbb;
width: 100%;
padding: 10px;
height: auto;
margin-bottom: 15px;
@include box_sizing;
}

想知道其他人是否也遇到同样的问题?

最佳答案

差异可能在于 Chrome 与 FireFox(Hartl 浏览器)中输入的默认高度。

CSS 声明 height:auto; 让浏览器计算默认高度。

关于css - Michael Hartl Rails 教程 - CSS 未正确渲染,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12135505/

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