为了账号安全,请及时绑定邮箱和手机立即绑定

一般来说,position:absolute之后跟left,top,这里为啥是width,height?

.nav-wrap nav a{                position: absolute;                width: 30px;                height: 30px;                background: #f44283;                text-align: center;                line-height: 30px;                text-decoration: none;                color: #fff;                border-radius: 3px;                text-shadow: 1px 1px 0px #000;                transform: translate(-50%,-50%);            }


正在回答

1 回答

举报

0/150
提交
取消

一般来说,position:absolute之后跟left,top,这里为啥是width,height?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信