首页 > 开发 > CSS > 正文

html css 标题背景 折边凸显效果

2024-07-11 08:27:51
字体:
来源:转载
供稿:网友
实现这样的效果,标题背景 超出所在的box



下面是代码,标题是 <h2> 标签


复制代码
代码如下:
#exp-detail .exp-content h2 {
background-position: 0 -82px;
font-size: 14px;
font-weight: bold;
height: 48px;
line-height: 40px;
margin: 15px -24px 0 -31px;
padding-left: 27px;
position: relative;
}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表