html没有旁边标题框,html-在di中给出边框标题

html-在di中给出边框标题

我可以在HTML中这样做吗?

UoorI.png

我想在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:

这将给您这样的输出。

ADHKH.jpg

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:

这将给出这样的输出,

RloDy.png

Kannan Arumugam answered 2020-07-13T13:48:37Z

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值