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

一般来说,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 回答

position:absolute此处只做脱离文档流使用,或者在其他地方会去定义left和top这些值

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号