gpt4 book ai didi

css - 具有响应式布局的表单

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

为什么文本框不遵循 .span1 规则?我该怎么做才能修复它?

http://jsfiddle.net/aurorius/aNRBn/

<html>
<head>
<title></title>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<form class="form-horizontal">
<fieldset>
<div class="control-group">
<label class="control-label" for="focusedInput">Focused input</label>
<div class="controls">
<input class="focused span1" id="focusedInput" type="text"
value="This is focused" />
</div>
</div>
<div class="control-group">
<label class="control-label">Uneditable input</label>
<div class="controls">
<span class="span1 uneditable-input">Some value here</span>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</body>
</html>

修复它的一种快速方法是将 row-fluid 更改为 row。但是如何在仍然使用 row-fluid 标签的情况下修复它呢?

最佳答案

为什么不尝试使用输入而不是跨度?

<input class="uneditable-input span1" value="Some value here" />

http://jsfiddle.net/uWbe9/

关于css - 具有响应式布局的表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10771653/

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