0

我做了一个自定义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>
4

0 回答 0