最新回答 / 慕粉3248143
要想给元素设置z-index样式,必须先让它变成定位元素,再通俗一点说,就是要给元素设置一个postion:relative不要给想控制“上、下”的元素设置z-index,而是对他们的父容器设置z-index样式。
2017-09-09
最新回答 / Leebours
可以设置下font-weight,代码:.mainDiv:hover{font-weight:bolder;} 。然后字体想跟图片上的一样就设置一下font-famliy,body{font-family: 'Microsoft YaHei', Verdana, Geneva, sans-serif;}transition 的all关键字就是让transition作用于这个class或者id的所有属性transition是过渡效果,写在hover里面是为了当鼠标划过div时,hover中属性的变化有过...
2016-11-29
最新回答 / happy_ye16
…… img:hover{ -webkit-transform: rotate(0deg) !important; -moz-transform: rotate(0deg) !important; transform: rotate(0deg) !important; -webkit-transform:scale(1.2)!important; -moz-transform: scale(1.2)!important; transform:scale(1.2)!importan...
2016-06-20