JQuery daily, jquerydaily

Source: Internet
Author: User

JQuery daily, jquerydaily

Scaling list, toggle (speed, callback), I want to make hover color, click color, click scaling, use toggle, now do not know how to change the color, write another script, yes, however, you can use toggle. I just haven't found a solution yet.

Fade in and out? What is the difference with scaling?

Slide down/up slide

$(document).ready(function(){  $("button").click(function(){    var txt="";    txt+="Width of div: " + $("#div1").width() + "</br>";    txt+="Height of div: " + $("#div1").height();    $("#div1").html(txt);

 

OK, css scaling, search result 1 -------> box-flex, more like layout,

Second

CSS3 click the button to implement the responsive scaling search box. File Reference: <link rel = "stylesheet" type = "text/css" href = "css/default.css"/> <link rel = "stylesheet" type = "text/css" href =" css/component.css "/> <script src =" js/modernizr. custom. js "> </script> Page Structure: <div class =" main clearfix "> <! -- Optional columns for small components --> <div class = "column"> <p> The search bar can be opened on click, it has a fluid width and it & #39; s mobile-friendly. </p> </div> <div class = "column"> <div id = "sb-search" class = "sb-search"> <form> <input class = "sb-search-input" placeholder = "Enter your search term... "type =" text "value =" "name =" search "id =" search "> <input class =" sb-search-submit "type =" submit "value =" "> <span class =" sb-icon-search "> </span> </form> </div> call code: <script src = "js/classie. js "> </script> <script src =" js/uisearch. js "> </script> <script> new UISearch (document. getElementById ('SB-search'); </script>

The effect looks pretty good, but I haven't looked at DOM, and I will stay for future reference.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.