• June 1, 2017
    <style>
    .spoiler {
        display: none;
    }
    
    .trigger.close {
        display: none;
    }
    
    .trigger.open:target {
        display: none;
    }
    
    .trigger.open:target + .trigger.close {
        display: inline;
    }
    
    .trigger.open:target + .trigger.close + .spoiler {    
        display: block;
    }
    </style>
    <a href="#spoiler-open-1" id="spoiler-open-1" class="trigger open">Open</a>
    <a href="#spoiler-close-1" id="spoiler-close-1" class="trigger close">Close</a>
    <div class="spoiler">
        Ololo, Imma spoiler    
    </div>

    http://jsfiddle.net/Kalashnikov/ZbxfW/

    <style>
    body {
      background-color:#ccc;
      padding:30px;
    }
    
    input.trigger {
      display:inline-block;
      margin:0px;
      padding:0px;
    }
    
    .spoiler {
      background-color:white;
      padding:15px 30px;
      margin:10px 0px 0px;
      display:none;
    }
    
    input.trigger:checked + .spoiler {
      display:block;
    }
    
    </style>
    <input type="checkbox" class="trigger" /> Buka/Tutup Spoiler
    <div class="spoiler">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</div>
    
    http://jsfiddle.net/tovic/bY6ty/

    <style type="text/css">
    /* animated spoiler CSS by Bloggersentral.com */
    .spoilerbutton {display:block;margin:5px 0;}
    .spoiler {overflow:hidden;background: #f5f5f5;}
    .spoiler > div {-webkit-transition: all 0.2s ease;-moz-transition: margin 0.2s ease;-o-transition: all 0.2s ease;transition: margin 0.2s ease;}
    .spoilerbutton[value="Show"] + .spoiler > div {margin-top:-100%;}
    .spoilerbutton[value="Hide"] + .spoiler {padding:5px;} 
    </style>
    <input class="spoilerbutton" type="button" value="Show" onclick="this.value=this.value=='Show'?'Hide':'Show';">
    <div class="spoiler"><div>
    PUT CONTENT YOU WISH TO HIDE HERE
    </div></div>

    http://www.bloggersentral.com/2013/03/content-spoiler-with-simple-css3.html



เวอไนน์ไอคอร์ส

ประหยัดเวลากว่า 100 เท่า!






เวอไนน์เว็บไซต์⚡️
สร้างเว็บไซต์ ดูแลเว็บไซต์

Categories