【发布时间】:2013-06-10 19:00:55
【问题描述】:
是否可以创建一个单选按钮组,每个元素前面没有圆形按钮?
我想实现它的原因是,在我的情况下,用户必须在 3 种不同的语言之间进行选择,我真的很想将此选择添加到 <form> 标记,更改所选语言的颜色和让它required,但同时我希望它看起来像这样:
___________________________
| Username | <--Text input
___________________________
___________________________
| Password | <--Text input
___________________________
____________________________
| EN | DE | FR | <--This is what I thought of... Horizontal selection
____________________________ of the language looking like a simple table with
3 rows and the plain text (EN, DE, FR) in it.
____________________________
| Login | <--Submit button
____________________________
我真的希望你能明白我的意思:)
【问题讨论】:
-
+1 为漂亮的图表,但你有什么你已经尝试过的东西吗?
-
非常感谢 :D 目前我已经制作了一个简单的表格,其中包含 3 行和纯文本。评估是使用 javascript 进行的,但我对此并不满意,因为我想将它放在
<form>标记中,将其与所有其他输入一起发布并添加required。
标签: css html forms radio-button