html新闻网页模板(html新闻页面)

admin 24 2022-11-27

本文目录一览:

html新闻滚动模板我想加几行,怎么加急用!!!

我想问的是,长度加几行吗?我这里有最新公告之类的代码,如果用,可以找我。

求一个简单的个人网页html模板

这种模板很多的,百度打开一个网页右键源代码就能找到了。

html xmlns=""headmeta http-equiv="Content-Type" content="text/html; charset=gb2312"

meta name="viewport" id="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"

meta name="apple-mobile-web-app-capable" content="yes"

meta name="apple-mobile-web-app-status-bar-style" content="black"

link href="{dede:global.cfg_templets_skin/}/images/apple-touch-icon-57.png" sizes="57x57" rel="apple-touch-icon"

link href="{dede:global.cfg_templets_skin/}/images/apple-touch-icon-72.png" sizes="72x72" rel="apple-touch-icon"

link href="{dede:global.cfg_templets_skin/}/images/apple-touch-icon-114.png" sizes="114x114" rel="apple-touch-icon"

title{dede:global.cfg_webname/}/title

meta name="keywords" content="{dede:global.cfg_keywords/}"

meta name="description" content="{dede:global.cfg_description/}"

link href="{dede:global.cfg_templets_skin/}/style/style.css" rel="stylesheet" type="text/css"

script type="text/javascript" src="{dede:global.cfg_templets_skin/}/style/jquery-1.9.1.js"/script

script type="text/javascript" src="{dede:global.cfg_templets_skin/}/style/theme_trust.js"/script

style type="text/css"

html,

body {

margin: 0;

padding: 0;

}

.iw_poi_title {

color: #CC5522;

font-size: 14px;

font-weight: bold;

overflow: hidden;

padding-right: 13px;

white-space: nowrap

}

.iw_poi_content {

font: 12px arial, sans-serif;

overflow: visible;

padding-top: 4px;

white-space: -moz-pre-wrap;

word-wrap: break-word

}

/style

script type="text/javascript" src="{dede:global.cfg_templets_skin/}/main.js"/script

script

jQuery(document).ready(function() {

jQuery('#openSidebar').click(function() {

jQuery('.wrapper').toggleClass('openNav');

});

jQuery('#menu a').click(function() {

jQuery('.wrapper').removeClass('openNav');

});

});

/script

script type="text/javascript" src="{dede:global.cfg_templets_skin/}/api"/scriptscript type="text/javascript" src="{dede:global.cfg_templets_skin/}/getscript"/scriptlink rel="stylesheet" type="text/css" href="{dede:global.cfg_templets_skin/}/bmap.css"

style type="text/css"

html,

body,

wrapper {

height: 100%;

}

/style

/head

body

div class="wrapper"

div class="sidebar"

div class="clearfix k1120"

div class="navBox" id="openSidebar"

a href="javascript:void(0)" class="navOpen"/a

/div

div id="menu"

ul class="clearfix"

lia href="#home" class="nav_home current"span首页br /bHome/b/span/a

/li

lia href="#services" class="nav_services"span服务范围br /bServices/b/span/a

/li

lia href="#case" class="nav_case"span案例展示br /bCase/b/span/a

/li

lia href="#about" class="nav_about"span关于我们br /bAbout us/b/span/a

/li

lia href="#news" class="nav_news"span新闻动态br /bNews/b/span/a

/li

lia href="#contact" class="nav_contact"span联系我们br /bContact us/b/span/a

/li

/ul

/div

/div

/div

div class="pageMain"

div id="header"

div class="k1120 clearfix"a href="{dede:global.cfg_basehost/}" id="logo"logo/a

/div

/div

div id="home" class="scrol-page"

div class="banner"

div class="b_1" style="background-position: 50% 0px;"

div class="k1120 clearfix"

div class="b_pic"

div class="mac" style="margin-top: 0px; opacity: 1;"img src="{dede:global.cfg_templets_skin/}/images/mac.png"

/div

div class="iphone" style="margin-top: 0px; opacity: 1;"img src="{dede:global.cfg_templets_skin/}/images/iphone.png"

/div

div class="ipad" style="margin-top: 0px; opacity: 1;"img src="{dede:global.cfg_templets_skin/}/images/ipad.png"

/div

/div

div class="b_text" style="margin-top: 0px; opacity: 1;"

{dede:global.cfg_ggg/}

/div

/div

/div

/div

div class="banner"

当点击按钮时,生成一个以该条新闻ID为文件名的静态html页面

你需要一个已经编辑好的html文件模板,新闻标题那个地方定一个特殊的字符串,新闻内容那里定义一个特殊的字符串,然后你需要做的就是在后台生成的时候,读入这个html文件的源代码,把你新闻标题从数据库中读出来并替换html源文件中新闻标题的那个特殊字符串,同理替换新闻内容的那个字符串,然后把你更改后的html源文件按照你的新闻ID另存为html文件即可。这就是网上一般动态生成静态页面的思路。

html模板在哪里下载呢?

html网页模板就是用已经成形的网站为框架进行套用,可以在后台进行设置网站的一些信息,把这个网站改变成自己需要的网站信息。你可以在HTML网页模板中进行下载,这种一般是静态的页面,你如果想搭建整站可以使用cms系统。

只用html和css做的网页模板,不能有js和其他语言,最好是门户网站新闻网

!doctype html

html

head

meta charset="utf-8"

title卧龙控股/title

style type="text/css"

    @charset "utf-8";

/* CSS Document */

*{margin:0;padding:0;font-family:"微软雅黑";}

ul,ol,li{list-style:none;}

a,u{text-decoration:none;}

#top,#nav,#banner,#news,#wlsc,#yqlink,#bottom{margin:0 auto;}

/*-top-*/

#top{width:1000px;height:100px;}

#logo{width:732px;height:59px;float:left;padding:41px 0 0 21px;}

img{border:0;}

#sear{width:247px;height:61px;float:left;padding-top:39px;}

#search{height:26px; line-height:26px;border:1px solid #e5e5e5;border-right:none;outline:none;background: #f1f1f1;float:left;color:#818181;}

#fin{width:26px;height:26px;line-height:26px;border:none;background: #f1f1f1 url(../images/sear.jpg) no-repeat center;float:left;}

.ffin{height:26px;width: 26px;border:1px solid #e5e5e5;float:left;border-left:none;}

/*-nav-*/

#nav{width:1000px;height:59px;background:#000;}

#nav ul li{width:119px; height:59px;line-height:59px;text-align:center;border-right:1px solid #484848;float:left;}

#tttt{border:0;}

#nav a{color:#fff;}

/*-banner-*/

#banner{width:1000px;height:463px;}

#news{width:1000px;height:240px;}

#news1{width:456px;height:183px;float:left;padding:36px 25px 22px 19px;float:left;}

#news1 h2{font-size:18px;font-weight:100;color:#191919;width:78px;margin-bottom:22px;}

#news1 ul{font-size:12px;width:452px;line-height:24px;}

#news1 ul a{color:#5c5c5c;width:300px;overflow:hidden;white-space:nowrap;float:left;text-overflow:ellipsis;}

#news1 ul span{float:right;padding-right:28px;}

#news1 ul li a{background:url(../images/dian.jpg) no-repeat left center;padding-left:14px;color:#929292;}

#news2{width:240px;height:240px;background:#f1f1f1;float:left;}

#news2 h2{font-size:18px;font-weight:100;color:#515151;margin:36px 0 39px 25px;}

#news2 h3{font-size:12px;color:#515151;margin:0 0 13px 25px;line-height:12px;}

#news2 h4{font-size:11px;color:#515151;margin:0 0 27px 25px;line-height:12px;}

#news2 p{width:190px;font-size:11px;font-weight:100;color:#8c8c8c;margin:0 0 0 25px;line-height:20px;}

#news3{width:260px;height:240px;background:url(../images/hua.jpg) no-repeat #fbfbfb 164px 121px;float:left;}

#news3 h2{font-size:18px;font-weight:100;color:#222;padding:36px 0 21px 25px;}

#news3 p{width:180px;font-size:12px;font-weight:100;line-height:24px;padding:0 25px 0 25px;color:#595959;}

#news3 div{padding:56px 0 0 25px;}

/*-wlsc-*/

#wlsc{width:1000px;height:276px;}

#wlsc dl{width:230px;padding-left:20px;float:left;}

.miao{width:204px;font-size:12px;line-height:2em;color:#575757;}

#wlsc h2{font-size:18px;color:#212121;margin:30px 0 17px 23px;line-height:18px;font-weight:100;}

/*-yqlink-*/

#yqlink{width:1000px;height:249px;background:#e5e5e5;}

#yqlink1{width:480px;height:249px;padding:0 0 0 20px;float:left;}

#yqlink1 h2{font-size:16px;font-weight:100;color:#5e5e5e;width:432px;border-bottom:1px solid #c1c1c1;padding:31px 0 11px 12px;}

#yqlink1 ul li{font-size:12px;line-height:24px;background:url(../images/dayu.jpg) no-repeat 0 center ;padding-left:10px;}

#yqlink1 ul{float:left;width:150px;height:200px;padding-top:10px;}

#yqlink1 a{color:#8c8c8c;}

#yqlink2{width:180px;height:249px;padding:0 0 0 20px;float:left;}

#yqlink2 h2{font-size:16px;font-weight:100;color:#5e5e5e;width:160px;border-bottom:1px solid #c1c1c1;padding:31px 0 11px 12px;}

#yqlink2 ul li{font-size:12px;line-height:24px;background:url(../images/dayu.jpg) no-repeat 0 center ;padding-left:10px;}

#yqlink2 a{color:#8c8c8c;}

#yqlink2 ul{padding-left:10px;padding-top:10px;}

#yqlink3{width:280px;height:249px;padding:0 0 0 20px;float:left;}

#yqlink3 h2{font-size:16px;font-weight:100;color:#5e5e5e;width:240px;border-bottom:1px solid #c1c1c1;padding:31px 0 11px 12px;}

#yqlink3 img{margin:15px 0 0 20px;}

#bzottom{width:1000px;height:83px;}

#bot1{width:361px;height:58px;margin:24px 0 1px 21px;float:left;}

.shu{font-size:12px;padding-right:7px;border-right:1px solid #7e7e7e;color:#888;}

.shu1{font-size:12px;padding-right:7px;color:#888;}

#bot2{width:610px;height:83px;float:left;clear:right;}

#bot2 p{font-size:12px;color:#888;margin-top:27px;}

/style

/head

body

div id="top"

  div id="logo" 

    a href="#" alt="" title=""img src="images/logo.jpg" //a/div

  div id="sear"

    form name="" method="" action=""

     

      input type="text" value="SEARCH..." id="search"/

      div class="ffin"input type="submit" value="" id="fin"//div

    /form

  /div

/div

div id="nav"

  ul

    lia href="#"集团介绍/a/li

    lia href="#"集团介绍/a/li

    lia href="#"集团介绍/a/li

    lia href="#"集团介绍/a/li

    lia href="#"集团介绍/a/li

    lia href="#"集团介绍/a/li

    lia href="#"集团介绍/a/li

    li id="tttt"a href="#"集团介绍/a/li

  /ul

/div

div id="banner"a href="#"img src="images/banner.jpg" alt="" title="" //a/div

div id="news"

     div id="news1"

        h2新闻资讯/h2

        ul

            lia href="#"新闻条新闻条新闻条新条新闻条新闻条新闻条新闻条新闻条新闻条新闻条/aspan2016-12-02/span/li

            lia href="#"新闻条新闻条新闻条新闻条新闻条新闻条新条新闻条新闻条新闻条新闻条/aspan2016-12-02/span/li

            lia href="#"新闻条新闻条新闻条新新闻条条新闻条新闻条新新闻条新闻条新闻条闻条/aspan2016-12-02/span/li

            lia href="#"新闻条新闻条新闻条新新闻条新条新闻条新闻条新闻条新闻条新闻条闻条/aspan2016-12-02/span/li

            lia href="#"新闻条新闻条新闻条新闻条新闻条新条新闻条新闻条新闻条新闻条新闻条/aspan2016-12-02/span/li

            lia href="#"新闻条新闻条新闻条新闻条新闻条新闻条新条新闻条新闻条新条/aspan2016-12-02/span/li

        /ul

    /div

    div id="news2"

        h2卧龙介绍/h2

        h3公司成立于1984年,/h3

        h4经过近30年的发展/h4

        p公司怎么样怎么样怎么样怎么样怎么样怎么样怎么样/p

    /div

    div id="news3"

        h2人才招聘/h2

        p我们要招人我们要招人我们要招人我们要招人/p

        diva href="#"img src="images/more.jpg" alt="" title=""/a/div

    /div

/div

div id="wlsc"

    h2卧龙市场/h2

    dl

        dtimg src="images/wlsc1.jpg" alt="" title=""/dt

          dd class="miao"我是描述我是描述我是描述我是描述我是描述我是描述/dd

            

    /dl

    dl

        dtimg src="images/wlsc2.jpg" alt="" title=""/dt

          dd class="miao"我是描述我是描述我是描述我是描述我是描述我是描述/dd

            

    /dl

    dl

        dtimg src="images/wlsc3.jpg" alt="" title=""/dt

          dd class="miao"我是描述我是描述我是描述我是描述我是描述我是描述/dd

            

    /dl

    dl

        dtimg src="images/wlsc4.jpg" alt="" title=""/dt

          dd class="miao"我是描述我是描述我是描述我是描述我是描述我是描述/dd

            

    /dl

/div

div id="yqlink"

div id="yqlink1"

        h2产品中心/h2

        ul

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

        /ul

        ul

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

        /ul

        ul

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

        /ul

/div

div id="yqlink2"

    h2技术研发/h2

        ul

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

            lia href="#"我是链接/a/li

        /ul

/div

div id="yqlink3"

    h2营销网络/h2

    a href="#"img src="images/ditu.jpg" alt="" title="" /

    /a

/div

/div

div id="bottom"

    div id="bot1"

        a href="#" class="shu"网站地图/a

        a href="#" class="shu"联系我们/a

        a href="#" class="shu"关注卧龙/a

        a href="#" class="shu1"采购系统入口/a

        

    /div

    div id="bot2"

        pCOPYRIGHTCOPY;2013卧龙控股集团nbsp;版权所有nbsp;浙ICP备06005901号nbsp;技术支持:博采互动/p

    /div

/div

/body

/html

你把文字和图片改一下就可以了

HTML静态网页中的模板

简明步骤:打开一个已经存在的网页→另存为模板→新建可编纂区域→保留。

详细:

(1).打开示例站点中已经建好的index.htm文件,打开“文件”,点击“另存为模板”。

(2).选择模板存放的站点,在“另存为模板”对话框中为模板输入一个独一的名称,单击保留按钮。

(3).在“插入栏”选择“模板”,然后单击“可编辑区域”。

(4).频频这个过程。可以再做一些“可编辑区域”。

(5).打开“文件”菜单,单击“保留”。一个模板就做好了。

关于html新闻网页模板和html新闻页面的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。

上一篇:php网站搭建步骤(php网站开发项目式教程)
下一篇:java网站模板(java下载模板功能)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~