站长资源网页制作

HTML用户注册页面设置源码

整理:jimmy2024/6/29浏览2
简介设计上图中的网页:Do</div> <div class="news_infos"><div id="MyContent"><p><a href="javascript:;" onclick="showimg('/UploadFiles/2021-03-30/202010161541597.jpg');"><img src="/UploadFiles/2021-03-30/202010161541597.jpg" alt="HTML用户注册页面设置源码" onmousewheel="return bbimg(this)" onload="javascript:resizepic(this)" border="0"/></a><br>  </p> <p>设计上图中的网页:</p> <div class="htmlcode"> <pre class="brush:xhtml;"> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> form{ width: 800px; height: 700px; border: 1px solid red; margin: auto; background: url(images/tree.jpg) no-repeat -40px 300px; } form h3{ margin-left: 200px; } p{ margin-left: 200px; } hr{ margin-left: 200px; } .a1{ margin-left: 85px; } .a2{ margin-left: 110px; } input, textarea { background: url(images/attention.png) no-repeat right; } button{ margin-left: 200px; background: rgb(81, 187, 125); color: white; } span#as:hover input{ width: 300px; height: 40px; } </style> </head> <body> <form action=""> <h3>用户注册:</h3> <hr> <p>用户昵称:<span class="a1" id="as"><input type="text" required placeholder autofocus></span> <hr></p> <p>注册邮箱:<span class="a1" id="as"><input type="email" required placeholder="javin@example.com"></span><hr></p> <p>密码: <span class="a2" id="as"><input type="password" required placeholder></span><hr></p> <p>性别:<span class="a2">男<input type="radio" name="1" checked> 女 <input type="radio" name="1"> </span><hr> </p> <p>年龄:<span class="a2" id="as"><input type="number" name="number1" required placeholder></span><hr></p> <p>兴趣爱好:<span class="a1"> 足球<input type="checkbox" name="1"> 篮球<input type="checkbox" name="1"> 游泳<input type="checkbox" name="1"> 唱歌<input type="checkbox" name="1"> 跑步<input type="checkbox" name="1"> 瑜伽<input type="checkbox" name="1"> </span><hr></p> <p>自我介绍: <span class="a1"><textarea name="abcde" cols="30" rows="10" required placeholder>Please enter your message</textarea></span><hr> </p> <button type=submit>立即注册</button> <div></div> </form> </body> </html></pre> </div></div> </div> </div> <div class="share"> </div> <div class="nextinfo"> <p>上一篇:<a href="http://m.paidiu.com/show/1/67177.html" title="当div设置contentEditable=true时,重置其内容后无法光标定位">当div设置contentEditable=true时,重置其内容后无法光标定位</a></p> <p>下一篇:<a href="http://m.paidiu.com/show/1/67179.html" title="详解HTML元素的height、offsetHeight、clientHeight、scrollTop等梳理">详解HTML元素的height、offsetHeight、clientHeight、scrollTop等梳理</a></p> </div> <div class="otherlink"> <h2>最新资源</h2> <ul> <li><a href="/show/1/608970.html" title="群星.2010-《第13届汕头音响展纪念CD》非">群星.2010-《第13届汕头音响展纪念CD》非</a></li> <li><a href="/show/1/608969.html" title="吉尔·沙汉姆-《梁祝柴科夫斯基小提琴协奏">吉尔·沙汉姆-《梁祝柴科夫斯基小提琴协奏</a></li> <li><a href="/show/1/608968.html" title="《101系列:香港影視傳奇6CD 101首家喻户晓">《101系列:香港影視傳奇6CD 101首家喻户晓</a></li> <li><a href="/show/1/608967.html" title="蔡依林《蔡依林歌曲合集》[320k/MP3][431">蔡依林《蔡依林歌曲合集》[320k/MP3][431</a></li> <li><a href="/show/1/608966.html" title="陈宁《破晓 HQⅡ》2024头版限量编号 [WAV">陈宁《破晓 HQⅡ》2024头版限量编号 [WAV</a></li> <li><a href="/show/1/608965.html" title="瑞鸣音乐《中国音乐地图之听见河南豫剧经">瑞鸣音乐《中国音乐地图之听见河南豫剧经</a></li> <li><a href="/show/1/608964.html" title="【伊比萨沙发】VA-2024-IbizaSpring2024(">【伊比萨沙发】VA-2024-IbizaSpring2024(</a></li> <li><a href="/show/1/608963.html" title="群星《世界顶级汽车音响试音王》4K金碟16">群星《世界顶级汽车音响试音王》4K金碟16</a></li> <li><a href="/show/1/608962.html" title="群星-音效环绕天碟《极致环绕人声天碟天品">群星-音效环绕天碟《极致环绕人声天碟天品</a></li> <li><a href="/show/1/608961.html" title="泰拉克SACD古典试音碟7SACD-ISO">泰拉克SACD古典试音碟7SACD-ISO</a></li> </ul> </div> </div> <div class="sidebar"> <div class="cloud"><h2 class="hometitle">一句话新闻</h2><a href="/show/1/603302.html"><ul>微软与英特尔等合作伙伴联合定义“AI PC”:键盘需配有Copilot物理按键<br><br>几个月来,英特尔、微软、AMD和其它厂商都在共同推动“AI PC”的想法,朝着更多的AI功能迈进。在近日,英特尔在台北举行的开发者活动中,也宣布了关于AI PC加速计划、新的PC开发者计划和独立硬件供应商计划。<br>在此次发布会上,英特尔还发布了全新的全新的酷睿Ultra Meteor Lake NUC开发套件,以及联合微软等合作伙伴联合定义“AI PC”的定义标准。</ul></a></div> </div> </article> <footer> <p>Design by <a href="http://m.paidiu.com">黑松山资源网</a> <a href="/">http://m.paidiu.com</a></p> </footer> <script src="/images/nav.js"></script> <script type="text/javascript"> jQuery.noConflict(); jQuery(function() { var elm = jQuery('#left_flow2'); var startPos = jQuery(elm).offset().top; jQuery.event.add(window, "scroll", function() { var p = jQuery(window).scrollTop(); jQuery(elm).css('position', ((p) > startPos) ? 'fixed' : ''); jQuery(elm).css('top', ((p) > startPos) ? '0' : ''); }); }); </script> </body> </html>