<li id="2cvkk"><meter id="2cvkk"></meter></li>

<thead id="2cvkk"></thead>

  • <label id="2cvkk"><meter id="2cvkk"></meter></label><rt id="2cvkk"></rt>
    \n\n 

    Create an Account<\/h2>\n \n 
    \n  

    \n  Name<\/label>\n  \n  <\/p>\n  

    \n  Phone Number<\/label>\n  \n  <\/p>\n  

    \n  Email<\/label>\n  \n  <\/p>\n  

    \n  Password<\/label>\n  \n  <\/p>\n  

    \n  \n  I agree to the Terms and Conditions<\/a> and Privacy Policy<\/a>\n  <\/label>\n  <\/p>\n  

    \n  Register<\/button>\n  <\/p>\n <\/fieldset>\n <\/form>\n<\/p>\n<\/body>\n<\/html><\/pre>

    <\/p>\n

    <\/p>\n

    The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website! <\/p>\n

    Related recommendations: <\/p>\n

    JavaScript and html5 canvas code for how to draw a little person<\/a>
    <\/p>\n

    jQuery How to implement a sliding button The switch<\/a>
    <\/p>\n

    How to use JS and CSS3 to create cool pop-up effects<\/a>
    <\/p>\n

    <\/p>\n

    <\/span><\/p>"}

    国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

    Home Web Front-end JS Tutorial jQuery, html5 and css3 implement the function of rounded corner non-refresh form with input validation

    jQuery, html5 and css3 implement the function of rounded corner non-refresh form with input validation

    Jun 25, 2018 pm 04:31 PM
    css3 html5 jquery rounded corners form

    This article mainly introduces jQuery html5 css3 to implement the rounded corner non-refresh form with input verification function code. It adds html5 and css3 technology to make the entire form effect more beautiful and gorgeous. Friends who need it can refer to it

    This article describes the example of jQuery html5 css3 implementing rounded corner non-refresh form with input verification function code. Share it with everyone for your reference. The details are as follows:

    Here is a rounded form, rounded input box, no refresh verification, beautiful and beautiful. This is a brief summary of the form effect based on HTML5/CSS3/jQuery, which can be achieved with HTML5 There are many extraordinary effects. From now on, you will fall in love with HTML5 and you will scold the evil IE. Until now, IE8 does not support HTML5, which is sad.

    Let’s take a look at the screenshot of the running effect:

    The specific code is as follows:

    <!DOCTYPE html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>html5+css3+jQuery圓角注冊表單效果</title>
    <script type="text/javascript" src="jquery-1.6.2.min.js"></script>
    <script type="text/javascript">
     $(document).ready(function() {
    (function($) { $.InFieldLabels = function(label, field, options) { var base = this; base.$label = $(label); base.$field = $(field); base.$label.data("InFieldLabels", base); base.showing = true; base.init = function() { base.options = $.extend({}, $.InFieldLabels.defaultOptions, options); base.$label.css(&#39;position&#39;, &#39;absolute&#39;); var fieldPosition = base.$field.position(); base.$label.css({ &#39;left&#39;: fieldPosition.left, &#39;top&#39;: fieldPosition.top }).addClass(base.options.labelClass); if (base.$field.val() != "") { base.$label.hide(); base.showing = false; }; base.$field.focus(function() { base.fadeOnFocus(); }).blur(function() { base.checkForEmpty(true); }).bind(&#39;keydown.infieldlabel&#39;, function(e) { base.hideOnChange(e); }).change(function(e) { base.checkForEmpty(); }).bind(&#39;onPropertyChange&#39;, function() { base.checkForEmpty(); }); }; base.fadeOnFocus = function() { if (base.showing) { base.setOpacity(base.options.fadeOpacity); }; }; base.setOpacity = function(opacity) { base.$label.stop().animate({ opacity: opacity }, base.options.fadeDuration); base.showing = (opacity > 0.0); }; base.checkForEmpty = function(blur) { if (base.$field.val() == "") { base.prepForShow(); base.setOpacity(blur ? 1.0 : base.options.fadeOpacity); } else { base.setOpacity(0.0); }; }; base.prepForShow = function(e) { if (!base.showing) { base.$label.css({ opacity: 0.0 }).show(); base.$field.bind(&#39;keydown.infieldlabel&#39;, function(e) { base.hideOnChange(e); }); }; }; base.hideOnChange = function(e) { if ((e.keyCode == 16) || (e.keyCode == 9)) return; if (base.showing) { base.$label.hide(); base.showing = false; }; base.$field.unbind(&#39;keydown.infieldlabel&#39;); }; base.init(); }; $.InFieldLabels.defaultOptions = { fadeOpacity: 0.5, fadeDuration: 300, labelClass: &#39;infield&#39; }; $.fn.inFieldLabels = function(options) { return this.each(function() { var for_attr = $(this).attr(&#39;for&#39;); if (!for_attr) return; var $field = $("input#" + for_attr + "[type=&#39;text&#39;]," + "input#" + for_attr + "[type=&#39;password&#39;]," + "input#" + for_attr + "[type=&#39;tel&#39;]," + "input#" + for_attr + "[type=&#39;email&#39;]," + "textarea#" + for_attr); if ($field.length == 0) return; (new $.InFieldLabels(this, $field[0], options)); }); }; })(jQuery);
    $("#RegisterUserForm label").inFieldLabels();
    });
    </script>
    <style type="text/css">
    html, body, h1, form, fieldset, input{margin: 0;padding: 0;border: none;}
    body{font-family: Helvetica, Arial, sans-serif;font-size: 12px;}
    #registration{color: #fff;background: #2d2d2d;background: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(60,60,60)), color-stop(0.74, rgb(43,43,43)), color-stop(1, rgb(60,60,60)) );background: -moz-linear-gradient( center bottom, rgb(60,60,60) 0%, rgb(43,43,43) 74%, rgb(60,60,60) 100% );-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius: 10px;margin: 10px;width: 430px;}
    #registration a{color: #8c910b;text-shadow: 0px -1px 0px #000;}
    #registration fieldset{padding: 20px;}
    input.text{-webkit-border-radius: 15px;-moz-border-radius: 15px;border-radius: 15px;border: solid 1px #444;font-size: 14px;width: 90%;padding: 7px 8px 7px 30px;-moz-box-shadow: 0px 1px 0px #777;-webkit-box-shadow: 0px 1px 0px #777;background: #ddd url(&#39;img/inputSprite.png&#39;) no-repeat 4px 5px;background: url(&#39;images/inputSprite.png&#39;) no-repeat 4px 5px, -moz-linear-gradient( center bottom, rgb(225,225,225) 0%, rgb(215,215,215) 54%, rgb(173,173,173) 100% );background: url(&#39;images/inputSprite.png&#39;) no-repeat 4px 5px, -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(225,225,225)), color-stop(0.54, rgb(215,215,215)), color-stop(1, rgb(173,173,173)) );color: #333;text-shadow: 0px 1px 0px #FFF;}
    input#email{background-position: 4px 5px;background-position: 4px 5px, 0px 0px;}
    input#password{background-position: 4px -20px;background-position: 4px -20px, 0px 0px;}
    input#name{background-position: 4px -46px;background-position: 4px -46px, 0px 0px;}
    input#tel{background-position: 4px -76px;background-position: 4px -76px, 0px 0px;}
    #registration h2{color: #fff;text-shadow: 0px -1px 0px #000;border-bottom: solid #181818 1px;-moz-box-shadow: 0px 1px 0px #3a3a3a;text-align: center;padding: 18px;margin: 0px;font-weight: normal;font-size: 24px;font-family: Lucida Grande, Helvetica, Arial, sans-serif;}
    #registerNew{width: 203px;height: 40px;border: none;text-indent: -9999px;background: url(&#39;images/createAccountButton.png&#39;) no-repeat;cursor: pointer;float: right;}
    #registerNew: hover{background-position: 0px -41px;}
    #registerNew: active{background-position: 0px -82px;}
    #registration p{position: relative;}
    fieldset label.infield{color: #333;text-shadow: 0px 1px 0px #fff;position: absolute;text-align: left;top: 3px !important;left: 35px !important;line-height: 29px;}
    </style>
    </head>
    <body>
    <p id="registration">
     <h2>Create an Account</h2>
     <form id="RegisterUserForm" action="" method="post">
     <fieldset>
      <p>
      <label for="name">Name</label>
      <input id="name" name="name" type="text" class="text" value="" />
      </p>
      <p>
      <label for="tel">Phone Number</label>
      <input id="tel" name="tel" type="tel" class="text" value="" />
      </p>
      <p>
      <label for="email">Email</label>
      <input id="email" name="email" type="email" class="text" value="" />
      </p>
      <p>
      <label for="password">Password</label>
      <input id="password" name="password" class="text" type="password" />
      </p>
      <p><input id="acceptTerms" name="acceptTerms" type="checkbox" />
      <label for="acceptTerms">
      I agree to the <a href="">Terms and Conditions</a> and <a href="">Privacy Policy</a>
      </label>
      </p>
      <p>
      <button id="registerNew" type="submit">Register</button>
      </p>
     </fieldset>
     </form>
    </p>
    </body>
    </html>

    The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website!

    Related recommendations:

    JavaScript and html5 canvas code for how to draw a little person

    jQuery How to implement a sliding button The switch

    How to use JS and CSS3 to create cool pop-up effects

    The above is the detailed content of jQuery, html5 and css3 implement the function of rounded corner non-refresh form with input validation. For more information, please follow other related articles on the PHP Chinese website!

    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

    Hot AI Tools

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Tools

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    Dreamweaver CS6

    Dreamweaver CS6

    Visual web development tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    Hot Topics

    PHP Tutorial
    1502
    276
    Handling reconnections and errors with HTML5 Server-Sent Events. Handling reconnections and errors with HTML5 Server-Sent Events. Jul 03, 2025 am 02:28 AM

    When using HTML5SSE, the methods to deal with reconnection and errors include: 1. Understand the default reconnection mechanism. EventSource retrys 3 seconds after the connection is interrupted by default. You can customize the interval through the retry field; 2. Listen to the error event to deal with connection failure or parsing errors, distinguish error types and execute corresponding logic, such as network problems relying on automatic reconnection, server errors manually delay reconnection, and authentication failure refresh token; 3. Actively control the reconnection logic, such as manually closing and rebuilding the connection, setting the maximum number of retry times, combining navigator.onLine to judge network status to optimize the retry strategy. These measures can improve application stability and user experience.

    Integrating CSS and JavaScript effectively with HTML5 structure. Integrating CSS and JavaScript effectively with HTML5 structure. Jul 12, 2025 am 03:01 AM

    HTML5, CSS and JavaScript should be efficiently combined with semantic tags, reasonable loading order and decoupling design. 1. Use HTML5 semantic tags, such as improving structural clarity and maintainability, which is conducive to SEO and barrier-free access; 2. CSS should be placed in, use external files and split by module to avoid inline styles and delayed loading problems; 3. JavaScript is recommended to be introduced in front, and use defer or async to load asynchronously to avoid blocking rendering; 4. Reduce strong dependence between the three, drive behavior through data-* attributes and class name control status, and improve collaboration efficiency through unified naming specifications. These methods can effectively optimize page performance and collaborate with teams.

    Receiving real-time data with HTML5 Server-Sent Events (SSE). Receiving real-time data with HTML5 Server-Sent Events (SSE). Jul 02, 2025 pm 04:46 PM

    Server-SentEvents (SSE) is a lightweight solution provided by HTML5 to push real-time updates to the browser. It realizes one-way communication through long HTTP connections, which is suitable for stock market, notifications and other scenarios. Create EventSource instance and listen for messages when using: consteventSource=newEventSource('/stream'); eventSource.onmessage=function(event){console.log('Received message:',event.data);}; The server needs to set Content-Type to text/event

    Declaring the correct HTML5 doctype for modern pages. Declaring the correct HTML5 doctype for modern pages. Jul 03, 2025 am 02:35 AM

    Doctype is a statement that tells the browser which HTML standard to use to parse the page. Modern web pages only need to be written at the beginning of the HTML file. Its function is to ensure that the browser renders the page in standard mode rather than weird mode, and must be located on the first line, with no spaces or comments in front of it; there is only one correct way to write it, and it is not recommended to use old versions or other variants; other such as charset, viewport, etc. should be placed in part.

    Improving SEO with HTML5 semantic markup and Microdata. Improving SEO with HTML5 semantic markup and Microdata. Jul 03, 2025 am 01:16 AM

    Using HTML5 semantic tags and Microdata can improve SEO because it helps search engines better understand page structure and content meaning. 1. Use HTML5 semantic tags such as,,,, and to clarify the function of page blocks, which helps search engines establish a more accurate page model; 2. Add Microdata structured data to mark specific content, such as article author, release date, product price, etc., so that search engines can identify information types and use them for display of rich media summary; 3. Pay attention to the correct use of tags to avoid confusion, avoid duplicate tags, test the effectiveness of structured data, regularly update to adapt to changes in schema.org, and combine with other SEO means to optimize for long-term.

    Explaining the HTML5 `` vs `` elements. Explaining the HTML5 `` vs `` elements. Jul 12, 2025 am 03:09 AM

    It is a block-level element, suitable for layout; it is an inline element, suitable for wrapping text content. 1. Exclusively occupy a line, width, height and margins can be set, which are often used in structural layout; 2. No line breaks, the size is determined by the content, and is suitable for local text styles or dynamic operations; 3. When choosing, it should be judged based on whether the content needs independent space; 4. It cannot be nested and is not suitable for layout; 5. Priority is given to the use of semantic labels to improve structural clarity and accessibility.

    Getting the user's current location with the HTML5 Geolocation API. Getting the user's current location with the HTML5 Geolocation API. Jul 02, 2025 pm 05:03 PM

    When using HTML5Geolocation API to obtain user location, you must first obtain user authorization, and request and explain the purpose at the right time; the basic method is navigator.geolocation.getCurrentPosition(), which contains successful callbacks, wrong callbacks and configuration parameters; common reasons for failure include permission denied, browser not supported, network problems, etc., alternative solutions and clear prompts should be provided. The specific suggestions are as follows: 1. Request permissions when the user operation is triggered, such as clicking the button; 2. Use enableHighAccuracy, timeout, maximumAge and other parameters to optimize the positioning effect; 3. Error handling should distinguish between different errors

    How to create button elements in HTML forms. How to create button elements in HTML forms. Jul 03, 2025 am 02:39 AM

    Buttons are key interactive elements in HTML forms. There are two main ways to create: 1. Use tags to create custom buttons that support nested content, and the type attribute can be set to submit, reset or button; 2. Use tags to create basic buttons that only display text, suitable for simple scenarios. It is also recommended to combine CSS to set padding, font-size, border-radius and other styles to improve clickability and appearance, and enhance the interactive experience through:hover and:active status. The submission button can also use the disabled attribute to prevent repeated submissions.

    See all articles