【问题标题】:Border around radio button单选按钮周围的边框
【发布时间】:2017-08-20 12:42:49
【问题描述】:

here is the link to the border

谁能帮我复制那里使用的边框?我为单选按钮编写了代码,它们可以工作,但我只是不知道如何做那个边框,边框是如何在单词前后停止的?

任何帮助将不胜感激!

【问题讨论】:

标签: html css styles border radio


【解决方案1】:

您可以用<fieldset></fieldset> 标记包装您的单选按钮,用<legend></legend> 标记包装您的文本。

示例

<form>
 <fieldset>
  <legend>Personalia:</legend>
  Name: <input type="text"><br>
  Email: <input type="text"><br>
  Date of birth: <input type="text">
 </fieldset>
</form>

【讨论】:

  • 非常感谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-04-22
  • 1970-01-01
  • 2012-11-01
  • 1970-01-01
  • 2020-12-15
  • 2018-04-03
  • 1970-01-01
相关资源
最近更新 更多