本文共 812 字,大约阅读时间需要 2 分钟。
html-在di中给出边框标题
我可以在HTML中这样做吗?
我想在div上添加边框标题(此图中为“常规信息”)。可以吗? 怎么做?
注意:
该图像不是HTML页面的图像,而是Java应用程序的图像。
Harry Joy asked 2020-07-13T13:47:16Z
4个解决方案
53 votes
General Information
Change Password To: | |
Confirm Password: |
Nathan answered 2020-07-13T13:47:30Z
16 votes
该图像可能使用的是fieldset标签,而不是div,在fieldset内部,您可以使用标签legend,它将自动定位在此处。
General Information
amosrivera answered 2020-07-13T13:47:51Z
2 votes
Please Enter Your Name
First Name: | |
Last Name: |
这将给您这样的输出。
Rudrik answered 2020-07-13T13:48:13Z
1 votes
圆形边框与背景色。
.sample
{
border:2px solid #a1a1a1;
padding:10px 40px;
background:#dddddd;
width:300px;
border-radius:25px;
}
The border-radius property allows you to add rounded corners to elements.
Please Enter Your Name
First Name: | |
Last Name: | |
First Name: | |
Last Name: |
这将给出这样的输出,
Kannan Arumugam answered 2020-07-13T13:48:37Z
转载地址:http://pekfs.baihongyu.com/