Logo



html炫酷文章源码(好看的html源码)

本文目录一览:

找一个全html的精美企业网站源码

做企业网站光几个html简单源码是没办法满足的,你要上产品需要产品管理系统,发布企业新闻需要文章管理系统。你可以通过网站源码素材下载更全面的整站模板,如果是html静态网页其实根本称不上整站,都是还需要加工的。

哪位大师能写下这样的页面的一个html源代码,感激不尽,必有重谢!!

先看效果:

代码:

!doctype html

html

head

meta charset="utf-8"

title书店/title

style type="text/css"

*{

  padding:0;

  margin:0;

  box-sizing:border-box;

}

li{

  list-style:none;

}

.wrap{

  width:960px;

  margin:0 auto;

}

.header{

  overflow:hidden;

  margin:10px auto;

}

.logo{

  font-size:20px;

  color:#00F;

  text-align:center;

  line-height:100px;

  height:100px;

  width:20%;

  float:left;

}

.banner{

  height:100px;

  width:80%;

  float:left;

  border:1px solid #00F;

  font-size:30px;

  text-align:center;

  line-height:100px;

  background:#990;

}

.nav ul{

  width:100%;

  background:#6CC;

  overflow:hidden;

}

.nav ul li{

  float:left;

  line-height:30px;

  margin-right:15px;

}

.nav ul li a{

  color:#000000;

  text-decoration:underline;

}

.main{

  margin-top:20px;

  overflow:hidden;

}

.sidebar{

  width:200px;

  float:left;

}

.login{

  border:1px solid #06F;

}

.login h2{

  line-height:24px;

  background:#6CC;

  color:#000000;

  text-align:center;

  font-size:18px;

  font-weight:normal;

}

.login p{

  margin:10px 10px;

}

.login p input{

  width:100px;

}

.login button{

  background:none;

  border:1px solid #000000;

  padding:5px 10px;

  margin:15px;

}

.car{

  margin:30px auto;

  width:50px;

  height:50px;

  border-radius:50%;

  background:#C90;

  line-height:50px;

  text-align:center;

}

.book{

  width:750px;

  float:right;

}

.book ul li{

  border:1px solid #069;

  padding:10px;

  overflow:hidden;

  margin-bottom:20px;

}

.book ul li img{

  float:left;

  width:100px;

  height:120px;

  border:1px solid #999;

  margin-right:10px;

}

.book ul li .info{

  float:left;

}

.book ul li .info p{

  margin-bottom:10px;

}

.book ul li .more{

  margin-top:20px;

}

.book ul li .more a{

  color:#000000;

  text-decoration:underline;

}

.book ul li .more .buy{

  padding:3px 5px;

  background:#FC0;

  color:#000000;

  border:1px solid #000000;

  border-radius:3px;

  text-decoration:none;

  margin-left:15px;

}

/style

/head

body

div class="4a85-de4a-93fa-f1c7 wrap"

div class="de4a-93fa-f1c7-cccf header"

    div class="93fa-f1c7-cccf-8f8c logo"h1网上书店/h1/div

        div class="f1c7-cccf-8f8c-d977 banner"欢迎访问/div

    /div

    div class="cccf-8f8c-d977-78d2 nav"

    ul

        lia href="#"首页/a/li

            lia href="#"文学类/a/li

            lia href="#"计算机类/a/li

            lia href="#"英语类/a/li

            lia href="#"动态啥类/a/li

        /ul

    /div

    div class="b072-64f6-b45b-64c6 main"

    div class="64f6-b45b-64c6-092d sidebar"

        div class="b45b-64c6-092d-7640 login"

                h2用户登录/h2

                form method="post"

                    p用户名:input type="text" //p

                    p密 码:input type="password" //p

                    button登录/button

                    button注册/button

                /form

            /div

            div class="64c6-092d-7640-94f7 car"

            购物车

            /div

        /div

        div class="092d-7640-94f7-f33b book"

        ul

            li

                img src=""

                    div class="7640-94f7-f33b-4c90 info"

                    p名称:图灵/p

                        p作者:言小鱼/p

                        p价格:无价/p

                        p class="94f7-f33b-4c90-2de7 more"a href="#"详细信息/aa href="#" class="f33b-4c90-2de7-4a85 buy"购买/a/p

                    /div

                /li

                li

                img src=""

                    div class="4c90-2de7-4a85-de4a info"

                    p名称:图灵/p

                        p作者:言小鱼/p

                        p价格:无价/p

                        p class="2de7-4a85-de4a-93fa more"a href="#"详细信息/aa href="#" class="4a85-de4a-93fa-f1c7 buy"购买/a/p

                    /div

                /li

            /ul

        /div

    /div

/div

/body

/html

满意请采纳~

html网页源代码是什么 如何查看网页源代码经验篇

第一种:打开一个网页后点击鼠标的 右键就会有"查看源文件",操作 鼠标右键---查看源文件 即可弹出一个记事本,而记事本内容就是此网页的html代码。

第二种:通过浏览器状态栏或工具栏中的点击 “查看”然后就用一项“查看源代码”,点击查看源代码即可查看此网页的源代码源文件。

写出对应网页的HTML源代码

代码如下:

form class="de4a-93fa-f1c7-cccf "

table border="2"

tr

td用户姓名:/td

tdinput type="text" name="name" /td

tdstrong*必须输入/strong/td

/tr

tr

td用户密码:/td

tdinput type="password" name="name" /td

tdstrong*必须输入/strong/td

/tr

tr

tdnbsp;/td

td colspan="2"input name="" type="checkbox" value="" checked="checked" /记住我的信息/td

/tr

tr

td colspan="3"

input name="" type="submit" value="提交"  /

input name="" type="button" value="重置"  /

/td

/tr

完全按照图片上来做的,但是只用html应该不能进行提交,这涉及到cookie,需要php或者其他东西,所以提交只是做做样子。

这是效果截图:

HTML源代码

style type="text/css"

#demo{height:120px;overflow:hidden;}

#demo1{float:left;}#demo2{float:left;}

#indemo{float:left; width:1000%}

/style

div id="demo"

div id="indemo"

div id="demo1"这里放你要循环的图片/div

div id="demo2"/div

/div

/div

script

!--

var speed=20; //数字越大速度越慢

var tab=document.getElementById("demo");

var tab1=document.getElementById("demo1");

var tab2=document.getElementById("demo2");

tab2.innerHTML=tab1.innerHTML;

function Marquee(){

if(tab.scrollLeft=0)

tab.scrollLeft+=tab2.offsetWidth

else{

tab.scrollLeft--;

}

}

var MyMar=setInterval(Marquee,speed);

tab.onmouseover=function() {clearInterval(MyMar)};

tab.onmouseout=function() {MyMar=setInterval(Marquee,speed)};

--

/script

可以的啊,把上面代码复制到一个新建的html中,把img src="你的图片" /放到代码中就行了啊

HTML源码

!DOCTYPE html

html

head

meta charset="UTF-8"

meta name="description" content="" /

meta name="viewport" content="width=device-width, initial-scale=1.0"

title水印测试/title

style

.div{

  position:relative;

  width:300px;

  height:300px;

  background:url(img/1.jpg) no-repeat left top;

  background-size:100%;

  

}

.div .ico{

  width:100px;

  height:100px;

  position:absolute;

  right:10px;

  bottom:10px;

  display:none;

  background:url(img/1.png) no-repeat left top;

  background-size:100px;

}

.div:hover .ico{

  display:block;

}

/style

/head

body

div class="93fa-f1c7-cccf-8f8c div"

     div class="f1c7-cccf-8f8c-d977 ico"/div

    /div

/body

/html

这个是用纯css实现的,换成图片一个道理。

  html炫酷文章源码 

发布者  :  访客  2023/04/12  回复

p"div class="64f6-b45b-64c6-092d header"    div class="b45b-64c6-092d-7640 logo"h1网上书店/h1/div        div class="64c6-092d-7640-94f7 banner"欢迎访问

发布者  :  访客  2023/04/12  回复

i a{  color:#000000;  text-decoration:underline;}.main{  margin-top:20px;  overflow:hidden;}.sidebar{  width:200px

发布者  :  访客  2023/04/12  回复

n p{  margin:10px 10px;}.login p input{  width:100px;}.login button{  background:none;  border:1px solid #000000;  paddi


评论


最新评论