html常用

html常用,第1张

概述<!DOCTYPE html><html lang="zh-CN"><head> <meta charset="UTF-8"> <title>Title</title></head><body><form action="https://www.baidu.com" method="post"> <label>用户名: <inpu

<!DOCTYPE HTML><HTML lang="zh-CN"><head>    <Meta charset="UTF-8">    <Title>Title</Title></head><body><form action="https://www.baIDu.com" method="post">    <label>用户名:        <input type="text" name="user" placeholder="请设置用户名">    </label><br>    <label>手机号:        <input type="text" name="phone" placeholder="请输入手机号">    </label><br>    <label>密码:        <input type="password" name="password" placeholder="请输入密码">    </label><br>    <label>验证码:        <input type="text" name="yz" placeholder="请输入验证码">        <input type="button" value="获取验证码">    </label><br>    <input type="checkBox">阅读并接收<a href="www.baIDu.com"><<百度用户协议>></a><a href="www.baIDu.com"><<百度用户保护协议>></a><br>    <label>        <input type="submit" value="注册">    </label><br></form></body></HTML>
注册

<!DOCTYPE HTML><HTML lang="zh-CN"><head>    <Meta charset="UTF-8">    <Title>导航栏</Title>    <style>        .body{            margin:0;        }        ul{            margin: 0;            padding: 0;        }        /*去除了ul的样式。*/        .c1{            height:50px;            wIDth: 100%;            background-color: #4d4d4d;        }        .c2{            color: #eee;            float: left;            margin-right:5px;            margin-top:13.5px;            padding-right:15px;        }        .c3{            float: right;            List-style-type: none;        }        .c3>li{            float: right;            margin-left: 15px;        }        .c3>li>a:hover{            background: white;            color: #ff4700;        }        a{            text-decoration: none;            color: #eeeeee;        }        .sep{            color: #00ab36;            padding-left: 10px;        }        .c3>li>a{            line-height: 50px;            padding: 15px;        /*    让行高等于父标签的高度,实现单行文本垂直居中*/        }        .c1earfix:after{            content: "";            clear: both;            display: block;        }    </style></head><body><div class="c1 clearfix">    <div class="c2">商城<span class="sep">|</span></div>    <div class="c2"><span class="sep">|</span></div>    <div class="c2"><span class="sep">|</span></div>    <div class="c2"><span class="sep">|</span></div>    <div class="c2"></div>    <ul class="c3">        <li><a href="">购物车</a></li>        <li><a href="">登录</a></li>        <li><a href="">注册</a></li>    </ul></div></body></HTML>
导航栏

<!DOCTYPE HTML><HTML lang="zh-CN"><head>    <Meta charset="UTF-8">    <Title>blog</Title>    <link rel="stylesheet" href="blog.CSS"></head><body><!--左侧 开始--><div class="left">    <div class="avator">        <img src="timg.jpg" alt="">    </div>    <div class="blog-Title">richell的blog</div>    <div class="blog-info">什么也没有</div>    <div class="blog-link">        <ul>            <li><a href="">关于我</a></li>            <li><a href="">微博</a></li>            <li><a href="">公众号</a></li>        </ul>    </div>    <div class="blog-tag">        <ul>            <li><a href="">#JavaScript</a></li>            <li><a href=""># python</a></li>            <li><a href=""># golang</a></li>        </ul>    </div></div><!--左侧 结束--><!--右侧 开始--><div class="right">    <div class="article-List"><div class="article">            <div class="article-top">                <div class="article-Title">白猫<span class="article-date">2018-08-31</span></div>            </div>            <div class="article-mIDdle">                <p>在人间大手大脚ask机读卡事件发生发哦首府卡洛夫OK十大科技的可拉斯基的跨境物流快递就考虑实际大陆空军的绿卡就是的离开来得深刻了解阿喀琉斯大家</p>            </div>            <div class="article-bottom">                <span># HTML</span>                <span># CSS</span>            </div>        </div>        <div class="article">            <div class="article-top">                <div class="article-Title">白猫<span class="article-date">2018-08-31</span></div>            </div>            <div class="article-mIDdle">                <p>在人间大手大脚ask机读卡事件发生发哦首府卡洛夫OK十大科技的可拉斯基的跨境物流快递就考虑实际大陆空军的绿卡就是的离开来得深刻了解阿喀琉斯大家</p>            </div>            <div class="article-bottom">                <span># HTML</span>                <span># CSS</span>            </div>        </div>               <div class="article">            <div class="article-top">                <div class="article-Title">白猫<span class="article-date">2018-08-31</span></div>            </div>            <div class="article-mIDdle">                <p>在人间大手大脚ask机读卡事件发生发哦首府卡洛夫OK十大科技的可拉斯基的跨境物流快递就考虑实际大陆空军的绿卡就是的离开来得深刻了解阿喀琉斯大家</p>            </div>            <div class="article-bottom">                <span># HTML</span>                <span># CSS</span>            </div>        </div>               <div class="article">            <div class="article-top">                <div class="article-Title">白猫<span class="article-date">2018-08-31</span></div>            </div>            <div class="article-mIDdle">                <p>在人间大手大脚ask机读卡事件发生发哦首府卡洛夫OK十大科技的可拉斯基的跨境物流快递就考虑实际大陆空军的绿卡就是的离开来得深刻了解阿喀琉斯大家</p>            </div>            <div class="article-bottom">                <span># HTML</span>                <span># CSS</span>            </div>        </div>            <div class="article-mIDdle"></div>            <div class="article-bottom"></div>        </div>    </div></div><!--右侧 结束--></body></HTML>
blog

/*这是blog界面的CSS*/body{    margin: 0;}a{    text-decoration: none;}ul{    List-style-type: none;    margin: 0;    padding: 0;}/*blog 左侧样式区*/.left{    position: fixed;    left: 0;    tep:0;    height: 100%;    wIDth: 20%;    background-color: #4d4d4d;}.right{    wIDth: 80%;    float: right;    background: #eeeeee;}/*头像*/.avator{    height: 100px;    wIDth: 100px;    border: 3px solID white;    border-radius: 50%;    overflow: hIDden;    margin: 20px auto 0;}.avator>img{    wIDth: 100%;}/*blog标题*/.blog-Title{    text-align: center;    color: rgb(238,238,238);    Font-weight: bold;}.blog-info{    text-align: center;    color: rgb(238,238);    margin: 25px 0;}/*blog链接和标签*/.blog-link li,.blog-tag li{    margin: 20px,0;    text-align: center;}.blog-tag{    margin-top: 15px;}.blog-link a,.blog-tag a{    color: rgb(136,136,136);}.blog-link a:hover,.blog-tag a:hover{    color: white;}/*右侧样式区别*/.article-List{    margin: 20px 10% 20px 20px;}.article{    background-color: white;    margin-bottom: 20px;}.article:hover{        Box-shadow: 0 10px 20px;    Transition: all 200ms linear;}.article-date{    float: right;    Font-size: 16px;    Font-weight: normal;}.article-Title{    border-left: 5px solID darkred;    Font-size: 24px;    Font-weight: bold;    padding: 15px 20px;}.article-mIDdle{    padding: 10px 20px;}.article-bottom{    border-top: 1px solID #eeeeee;    margin: 0 20px;    padding: 15px 0;}.article-bottom>span{    Font-size: 12px;}
blog.CSS

<!DOCTYPE HTML><HTML lang="zh-CN"><head>    <Meta charset="UTF-8">    <Title>华东页面背景被动</Title>    <style>        *{            margin:0;        }        .Box{            wIDth: 100%;            height: 500px;            backgrounda:url("timg.jpg") no-repeat center center;            background-attachment: fixed;            <!--背景图片固定不动-->        }        .d1{            height:500px;            background-color: tomato;        }        .d2{            wIDth: 500px;            background-color: steelblue;        }        .d3{            height: 500px;            background-color: mediumorchID;        }    </style></head><body><div class="d1"></div><div class="Box"></div><div class="d2"></div><div class="d3"></div></body></HTML>
背景不动页面动 总结

以上是内存溢出为你收集整理的html常用全部内容,希望文章能够帮你解决html常用所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1075491.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存