码迷,mamicode.com
首页 > 其他好文 > 详细

元素不可见方法实践

时间:2017-08-19 22:22:40      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:img   style   ext   type   nsf   复制粘贴   元素   images   for   

如果对你有用,复制粘贴,拿走不谢~

<style type="text/css">
div:nth-child(2n){
background: #4a229a;
height: 50px;
}
div:nth-child(2n+1){
background: #dd172f;
height: 50px;
}
span{
background:#7af665;
}
.class1{
display: none;
}
.class2{
visibility: hidden;
}
.class3{
z-index: 0;
}
.class4{
position:relative;
left:-101%;
}
.class5{
text-indent: 100%;
white-space:nowrap;
overflow: hidden;
}
.class6{
height: 0px;
width: 0px;
}
.class7{
opacity:0;
}
.class8{
font-size: 0px;
}
.class9{
transform:rotateX(90deg);
}
.class10{
transform:rotateY(90deg);
}
.class11{
transform:translateX(-10000px);
}
.class12{
transform:translateY(-10000px);
}
.class13{
transform:scale(0);
}
.class14{
transform:skew(90deg);
}
</style>

对比图如下:

技术分享

 

元素不可见方法实践

标签:img   style   ext   type   nsf   复制粘贴   元素   images   for   

原文地址:http://www.cnblogs.com/rui-yang/p/7397913.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!