我制作了自定义fieldset
,但仅适用于Chrome。我怎么能解决这个问题?
必须在字段右侧标记输入文本,在字段右侧标记输入文本,但在下面的1行标记。
这是CSS:
#field {
width: 300px;
}
.name {
position: relative;
float: right;
}
.email {
position: relative;
float: right;
}
这是HTML:
<fieldset id = "field">
<legend>Add a wish</legend>
<input id = "name" class = "name" type = "text" width = "100"/>
<label for = "name" class = "name">Nam::</label>
<input id = "email" class = "email" type = "text" width = "100"/>
<label for = "email" class = "email">Email:</label>
<label id = "wis">Wish</label>
<textarea cols = "25" rows = "3" id = "wishes"></textarea>
</fieldset>