用html+css开发商业站点测试分析下列关于html代码段中的z-index属性说法正确的是( )。
<style type="text/css">
.tiptext{display:none;position:absolute;z-index:2;left:10px;top:36px;}
</style>
……
<body>
<div class="tiptext">
<img src="tip.jpg" />
</div>
</body>
z-index属性的值取值范围0-100
此段代码中的css样式必须设置z-index属性,否则会出现语法错误
将段代码中的z-index属性设置为2或-2,效果是一样的
z-index属性用于改变层的左右位置