隐藏元素的5种css方法

  1. display
display:none;
  1. visibility
visibility:hidden;
  1. opacity
opacity:0;
  1. position:absolute
top:-9999px;
left:-9999px;
  1. clip-path
clip-path:circle(0);//polygon&ellipse both valid

你可能感兴趣的:(隐藏元素的5种css方法)