作品介绍
1.网页作品简介方面 :HTML网站模板。重要有:首页 家乡简介 风景名胜 特色美食 站长介绍 在线调查 等总共 6 个页面html下载。
2.网页作品编辑:此作品为门生个人主页网页计划题材,代码为简单门生水平 html+css 结构制作,作品下载后可使用任意HTML编辑软件(如:DW、HBuilder、NotePAD 、Vscode 、Sublime 、Webstorm、 Notepad++ 等任意HTML软件编辑修改网页)。
3.网页作品技能:Div+CSS、鼠标滑过殊效、Table、导航栏效果、表单、二级三级页面等,视频、 音频元素 、Flash,基本期末作业所需的知识点全覆盖。
文章目次
一、计划说明
1.LOGO、导航栏、页尾
2.首页
3.家乡简介
4.风景名胜
5.特色美食
6.站长介绍
7.在线调查
二、作品演示
三、代码目次
四、代码演示
一、计划说明
1.LOGO、导航栏、页尾
logo由一张图片组成;导航栏是由列表,超链接组成,划过每个列表块是都会有颜色变化和底部边框的变化;页尾是由段落笔墨和一个图像构成,图像作为一个标志在右下角。
2.首页
主体部分:首页的主体分为上下两部分,下面在分为左右两部分。上面的部分的div为一个轮播图;下面左部分的div为一个新闻,这个部分由一张图片和一个段落笔墨链接组成,下右方的div又分为上下两个div,上方为一个简短的家乡介绍段落,下方为一个风景图片滚动介绍。
3.家乡简介
主体部分:左右两个部分。左边为一个简介目次的一个div,该部分的每一个标题对应的是右边简介的内容位置;右边的最上方放置了一个家乡宣传视频,下方是家乡的内容介绍用段落加图片的方式显现,可以从左边的目次直接找到相应位置。
4.风景名胜
主体部分:在一个大的div中设置了一个一列多行的表格,每个表格中都是一个风景的介绍,每个风景介绍都由一个照片、一段笔墨介绍和一个超链接来链接每个风景点的介绍。
5.特色美食
主体内容:分为上下两个部分,上部分中又分为左中右三个部分,下方为四个相等的div块。上方中左边的div块中为一个美食的轮播图,中心部分为一个团体的美食简介,由一个照片和一个段落笔墨链接组成,点击笔墨信息会链接到一个美食的链接;右边为一个美食排行榜的列表。下边的为四个美食的介绍,分别有一个照片和一段笔墨链接组成,每个链接为一个美食简介。
6.站长介绍
主体内容:分为左右两个部分组成。左边是一个一列两行表格,上边的表格内容设置了一个个性签名,还有一个时钟显示;下边为一个信息栏。右边是一个自我介绍内容,内容用列表来显现,边框设置阴影更有立体感。
7.在线调查
主体内容:一个div块中用表单来设置问题的输入,此中有单选,复选,多行文本输入。
在最下方还有两个按钮,提交和重置。
二、作品演示
首页
家乡简介
名胜风景
特色美食
站长简介
在线调查
三、代码目次
四、代码演示
首页
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>index.html</title>
- <link type="text/css" rel="stylesheet" href="out.css">
- </head>
- <body>
- <div class="header">
- <!--头部-->
- <img id="hi1" src="tupian/baoji9.jpg">
- </div>
- <div class="dh">
- <!--导航栏 -->
- <ul>
- <li><a href="我的家乡.html#">首页</a></li>
- <li><a href="家乡简介.html#">家乡简介</a></li>
- <li><a href="风景名胜.html#">风景名胜</a></li>
- <li><a href="美食特色.html#">美食特色</a></li>
- <li><a href="站长简介.html#">站长简介</a></li>
- <li><a href="在线调查.html#">在线调查</a></li>
- </ul>
- </div>
- <div class="donghua">
- <!--轮播-->
- <div id="photo">
- <img src="tupian/baoji6.jpg">
- <img src="tupian/baoji10.jpg">
- <img src="tupian/baoji7.png">
- <img src="tupian/baoji4.jpg">
- <img src="tupian/baoji2.png">
- </div>
- </div>
- <div class="zhuti"><!--主体部分-->
- <div class="zhuti">
- <div id="zhuti-left"><!--主体左侧新闻部分-->
- <table><!--新闻表格-->
- <tr>
- <img src="tupian/baoji3.png">
- </tr>
- <h4>宝鸡新闻</h4>
- <hr size="3" color="rgb(24, 24, 88)">
- <a href="http://fufeng.gov.cn/art/2022/5/13/art_47_1503593.html">
- <p>
- 2022年5月13日,第十一届宝鸡市文化旅游节开幕式暨岐山周文化旅游季启动仪式在周文化景区举办,本届文化旅游节开幕式由宝鸡市人民政府主办,宝鸡市文化和旅游局、中共岐山县委、岐山县人民政府承办,文化+、旅游+,文化强市、旅游...
- </p>
- </a>
- </tr>
- </table>
- </div>
- <div id="zhuti-right"><!--主体右侧部分-->
- <table>
- <tr>
- <h4>宝鸡介绍</h4><!--文字介绍宝鸡-->
- <hr size="3" color="rgb(24, 24, 88)">
- <p>
- 宝鸡,古称陈仓、雍城,誉称“炎帝故里、青铜器之乡”,陕西省辖地级市,关中平原城市群副中心城市、关天经济区副中心城市。宝鸡地处关中平原西部,下辖4区8县,总面积18117平方公里。截至2021年末,宝鸡全市常住人口为328.2万。
- </p>
- <p>
- 宝鸡历史悠久,是中华文化重要支脉宝学(宝鸡之学)所在地,有2700余年建城史,出土了晚清四大国宝及石鼓、何尊等文物,存有西府社火、凤翔木版年画、泥塑等中华工艺。宝鸡是联合国人居环境奖、中国人居环境奖、中华环境奖获得城市,全国文明城市、中国优秀旅游城市、国家森林城市。宝鸡也是我国西部工业重镇、高端装备制造业基地、中国钛谷。宝鸡位于陇海、宝成、宝中铁路交汇处,是我国重要的铁路交通枢纽之一。
- </p>
- </tr>
- <tr>
- <br>
- <h4>主要风景</h4><!--滚动主要风景-->
- <hr size="3" color="rgb(24, 24, 88)">
- <marquee behavior="scroll" height="170px">
- <ul>
- <li><img src="tupian/tese1.jpg"></li>
- <li><img src="tupian/tese2.jpg"></li>
- <li><img src="tupian/tese3.jpg"></li>
- <li><img src="tupian/tese4.jpg"></li>
- <li><img src="tupian/baoji5.jpg"></li>
- <li><img src="tupian/tese6.png"></li>
- </ul>
- </marquee>
- <hr size="3" color="rgb(24, 24, 88)">
- </tr>
- </table>
- </div>
- </div>
- </div>
- <div id="" class="footer">
- <!--页尾-->
- <img id="fi1" src="tupian/baoji1.jpg"><!--尾页右下角图片-->
- <p><!--尾页文字-->
- 古城宝鸡 璀璨文明
- </p>
- <p>
- welcome to baoji||宝鸡欢迎您!
- </p>
- </div>
- </body>
- </html>
复制代码- /*样式表文件out.css*/
- * {
- /*全局选择器*/
- margin: 0px;/*外边距*/
- padding: 0px;/*内边距*/
- }
- body {
- /*主体*/
- color: rgb(42, 61, 79);
- font-family: 楷体;/*字体样式*/
- background-color: rgb(235, 225, 225);/*背景颜色*/
- }
- .header {
- /*头部*/
- width: 100%;/*宽度*/
- height: 150px;/*高度*/
- }
- #hi1 {
- /*头部图片*/
- width: 100%;/*宽度*/
- height: 150px;/*高度*/
- }
- .dh ul {
- /*导航栏*/
- width: 1539px;
- padding: 0px;/*内边距*/
- height: 30px;/*高度*/
- margin-bottom: 30px;/*外边距*/
- }
- .dh ul li {/*导航栏行的设置*/
- height: 30px;
- width: 16.45%;
- list-style: none;/*列表样式*/
- float: left;/*左浮动*/
- display: inline;
- font: 0.9em;
- }
- .dh ul li a {/*导航栏链接设置*/
- text-align: center;/*文本位置*/
- color: white;
- font-size: larger;/*字体大小*/
- font-family: 楷体;
- width: 100%;
- margin: 0px;
- text-decoration: none;/*列表样式*/
- display: block;
- background-color: rgb(87, 156, 241);
- line-height: 40px;
- border-bottom: 0px solid rgb(168, 164, 172);
- }
- .dh ul li a:hover { /*鼠标划过导航栏时*/
- color: rgb(0, 0, 0);
- background-color: rgb(37, 84, 155);
- border-bottom: 3px solid rgb(16, 4, 28);
-
- }
- .footer {
- /*尾部*/
- margin-top: 10px;
- clear: both;/*清楚浮动*/
- width: 100%;
- height: 70px;
- background-color: rgb(87, 156, 241);
- color: rgb(99, 34, 34);
- font: italic 14px/20px 宋体;/*文字样式*/
- text-align: center;
- }
- .footer p{
- margin-top: 10px;
- }
- #fi1 {
- /*尾部图片*/
- width: 100px;
- height: 70px;
- float: right;/*右浮动*/
- padding: 0px;/*内边距*/
- }
- /*主体部分*/
- .donghua {
- /*轮播*/
- border-radius: 5px;/*边框弧度*/
- width: 70%;
- height: 250px;
- overflow: hidden;/*图片隐藏*/
- margin: 10px 200px 0px 200px;
- }
- #photo {/*轮播图片的总设置*/
- display: block;/*块展示*/
- width: 6000px;
- height: 250px;
- animation: bj 8s linear infinite;/*动画设置*/
- /*动画*/
- }
- #photo img {
- float: left;
- width: 1200px;
- height: 100%;
- padding: 0px 0px 0px 0px;
- }
- @keyframes bj {/*轮播图动画*/
- 0%,
- 20% {
- margin-left: 0px;
- }
- 25%,
- 40% {
- margin-left: -1200px;
- }
- 45%,
- 60% {
- margin-left: -2400px;
- }
- 65%,
- 80% {
- margin-left: -3600px;
- }
- 85%,
- 100% {
- margin-left: -4800px;
- }
- }
- .zhuti {/*主体内容*/
- margin: 20px 100px 0px 100px;
- }
- #zhuti-left {/*主体左边部分*/
- float: left;
- padding: 5px;
- width: 200px;
- background-color: rgb(210, 200, 170);
- }
- #zhuti-left img {/*左边图片设置*/
- width: 190px;
- height: 150px;
- }
- #zhuti-left img:hover{
- transform: scale(1.1);
- }
- #zhuti-left a {/*左边超链接*/
- text-decoration: none;
- color: rgb(61, 87, 109);
- }
- #zhuti-left a:hover{
- color: rgb(211, 35, 35);
- }
- #zhuti-left p {/*左边文字设置*/
- letter-spacing: 2px;/*字间距*/
- text-indent: 2em;
- line-height: 1.5em;
- }
- #zhuti-right {/*右边整体设置*/
- float: left;/*左浮动*/
- width: 800px;
- height: 438px;
- padding: 5px;
- background-color: rgb(210, 200, 170);
- margin-left: 40px;
- }
- #zhuti-right p {/*右边文字设置*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- }
- #zhuti-right img {/*右边图片设置*/
- width: 170px;
- height: 200px;
- border: 2px #cc66 ridge;
- }
- #zhuti-right ul {/*右边列表设置图片*/
- list-style-type: none;/*列表样式无*/
- }
- #zhuti-right li {
- float: left;
- }
复制代码 家乡简介
- * {
- /*全局选择器*/
- margin: 0px;
- padding: 0px;
- }
- .header {
- /*头部*/
- width: 100%;
- height: 130px;
- }
- body {
- background-color: rgb(235, 225, 225);
- }
- #hi1 {
- /*头部图片*/
- width: 100%;
- height: 150px;
- }
- .dh {
- height: 30px;
- margin-top: 20px;
- }
- .dh ul {
- /*导航栏*/
- margin-bottom: 30px;
- width: 1539px;
- padding: 0px;
- height: 30px;
- }
- .dh ul li {
- /*列表设置*/
- height: 30px;
- width: 16.45%;
- list-style: none;
- /*列表样式*/
- float: left;
- display: inline
- /*行内显示*/
- }
- .dh ul li a {
- /*列表超链接设置*/
- text-align: center;
- /*文本中部*/
- color: white;
- width: 100%;
- font-size: larger;
- font-family: 楷体;
- text-decoration: none;
- /*列表下划线无*/
- display: block;
- background-color: rgb(87, 156, 241);
- line-height: 40px;
- /*行高*/
- border-bottom: 1px solid rgb(168, 164, 172);
- }
- .dh ul li a:hover {
- /*鼠标划过时*/
- color: rgb(0, 0, 0);
- background-color: rgb(37, 84, 155);
- border-bottom: 3px solid rgb(16, 4, 28);
- }
- .footer {
- /*尾部*/
- margin-top: 10px;
- clear: both;
- /*浮动清空*/
- width: 100%;
- height: 70px;
- background-color: rgb(87, 156, 241);
- color: rgb(28, 41, 99);
- font: italic 14px/20px 宋体;
- /*字体设置*/
- text-align: center;
- }
- .footer p {
- margin-top: 10px;
- }
- #fi1 {
- /*尾部图片*/
- width: 100px;
- height: 70px;
- float: right;
- /*右浮动*/
- padding: 0px;
- /*内边距*/
- }
- #shiming {
- /*市名简介*/
- clear: both;
- /*浮动清除*/
- margin-top: 30px;
- background-color: rgb(255, 255, 255);
- padding: 15px;
- border-color: rgb(75, 99, 153);
- border-style: dashed;
- /*虚线 */
- border-radius: 10px;
- }
- #shiming img {
- /*市名图片*/
- border-radius: 5%;
- /*边框弧度*/
- width: 150px;
- height: 150px;
- float: left;
- /*左浮动*/
- margin: 5px 10px 0px 5px;
- }
- #shiming img:hover {
- /*图片划过时*/
- transform: scale(1.2);
- /*图片放大*/
- }
- #shiming p {
- /*市名文本设置*/
- letter-spacing: 2px;
- /*字体间隔*/
- text-indent: 2em;
- /*缩进*/
- line-height: 1.5em;
- }
- #shihua {
- /*市花1*/
- clear: both;
- /*浮动清除*/
- margin-top: 20px;
- padding: 5px;
- /*内边距*/
- height: 200px;
- background-color: rgb(255, 255, 255);
- border-color: rgb(75, 99, 153);
- border-style: dashed;
- /*虚线*/
- border-radius: 10px;
- }
- #shihua1 {
- /*市花2*/
- width: 450px;
- height: 200px;
- float: left;
- /*左浮动*/
- }
- #shishu {
- /*市树*/
- width: 450px;
- height: 200px;
- float: right;
- /*右浮动*/
- padding: 5px;
- /*内边距*/
- }
- #hua {
- /*花图片*/
- border-radius: 5%;
- /*图片弧度*/
- width: 150px;
- height: 150px;
- float: left;
- /*左浮动*/
- margin: 5px 10px 0px 5px;
- }
- #hua:hover {
- /*划过图片时*/
- transform: scale(1.2);
- /*图片放大*/
- }
- #shu {
- /*树图片*/
- border-radius: 5%;
- /*图片弧度*/
- width: 150px;
- height: 150px;
- float: left;
- /*左浮动*/
- margin: 0px 10px 0px 0px;
- }
- #shu:hover {
- /*鼠标化过时*/
- transform: scale(1.2);
- /*图片放大*/
- }
- #shihua p {
- /*市花文本设置*/
- letter-spacing: 2px;
- /*字间距*/
- text-indent: 2em;
- /*缩进*/
- line-height: 1.5em;
- }
- #dili {
- /*地理*/
- clear: both;
- /*清除浮动*/
- background-color: rgb(255, 255, 255);
- padding: 15px;
- margin-top: 20px;
- border-color: rgb(75, 99, 153);
- border-style: dashed;
- border-radius: 10px;
- }
- #dili img {
- /*地理图片*/
- width: 150px;
- height: 150px;
- float: left;
- /*左浮动*/
- margin: 0px 20px 0px 10px;
- padding: 10px 10px 10px 0px;
- border-radius: 5px;
- border: 1px solid rgb(20, 3, 31);
- /*左浮动*/
- }
- #dili img:hover {
- /*鼠标划过时*/
- transform: scale(1.2);
- /*图片放大*/
- }
- #dili p {
- /*地理文本设置*/
- letter-spacing: 2px;
- /*字间间距*/
- text-indent: 2em;
- line-height: 1.5em;
- }
- #lishi {
- /*历史*/
- clear: both;
- background-color: rgb(255, 255, 255);
- padding: 15px;
- margin-top: 20px;
- border-color: rgb(75, 99, 153);
- border-style: dashed;
- /*边框样式*/
- border-radius: 10px;
- /*边框弧度*/
- }
- #lishi p {
- /*历史字段*/
- letter-spacing: 2px;
- /*字间距*/
- text-indent: 2em;
- /*缩进*/
- line-height: 1.5em;
- }
- #lishi img {
- /*历史图片*/
- width: 150px;
- height: 100px;
- float: left;
- margin: 5px 10px 0px 10px;
- border-radius: 5px;
- /*边框弧度*/
- }
- #lishi img:hover {
- /*历史图片划过时*/
- transform: scale(1.2);
- }
- #ziyuan {
- /*资源*/
- clear: both;
- background-color: rgb(255, 255, 255);
- padding: 15px;
- margin-top: 20px;
- border-color: rgb(75, 99, 153);
- border-style: dashed;
- /*边框样式*/
- border-radius: 10px;
- /*边框弧度*/
- }
- #ziyuan p {
- /*资源字段*/
- letter-spacing: 2px;
- /*字间距*/
- text-indent: 2em;
- /*文段缩进*/
- line-height: 1.5em;
- }
- #ziyuan img {
- /*资源图片*/
- width: 150px;
- height: 100px;
- float: left;
- margin: 5px 10px 0px 10px;
- border-radius: 5px;
- }
- #ziyuan img:hover {
- /*鼠标划过时资源图片*/
- transform: scale(1.2);
- }
- #quhua {
- /*行政区划*/
- clear: both;
- background-color: rgb(255, 255, 255);
- padding: 15px;
- margin-top: 20px;
- border-color: rgb(75, 99, 153);
- border-style: dashed;
- border-radius: 10px;
- }
- #quhua p {
- /*区划段落*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- }
- #quhua img {
- /*区划图片*/
- width: 800px;
- height: 400px;
- margin: 5px 10px 0px 10px;
- border-radius: 5px;
- }
- #quhua img:hover {
- /*鼠标划过时的区划图片*/
- transform: scale(1.2);
- }
- #renkou {
- /*人口*/
- clear: both;
- background-color: rgb(255, 255, 255);
- padding: 15px;
- margin-top: 20px;
- border-color: rgb(75, 99, 153);
- border-style: dashed;
- border-radius: 10px;
- }
- #renkou p {
- /*人口段落*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- }
- .mulu {
- /*页面目录*/
- float: left;
- /*左浮动*/
- width: 200px;
- margin-top: 30px;
- background-color: rgb(201, 176, 162);
- }
- #d1 {
- /*目录块大小设置*/
- font-family: 黑体;
- font-size: 100%;
- /*字体大小*/
- color: white;
- float: left;
- background-color: rgb(61, 58, 128);
- width: 70px;
- height: 20px;
- padding: 5px 5px;
- margin: 4px;
- }
- #d2 {
- /*目录内容块设置*/
- clear: both;
- }
- .mulu ul li {
- /*列表设置*/
- list-style-type: none;
- }
- .mulu ul {
- /*目录块*/
- margin: 0px;
- padding: 15px 10px 15px 10px;
- }
- .mulu ul li a {
- /*目录超链接设置*/
- display: block;
- text-decoration: none;
- /*下划线无*/
- color: rgb(79, 50, 72);
- line-height: 30px;
- /*行高*/
- border-bottom: 1px dashed black;
- /*底部边框*/
- padding: 0px 0px 0px 0px;
- }
- .mulu ul li a:hover {
- /*鼠标划过时目录时*/
- color: aqua;
- }
- .mulu span {
- /*目录链接块*/
- float: right;
- }
- .zhuti {
- /*主体*/
- background-color: rgb(235, 225, 225);
- margin: 0px 200px 0px 300px;
- }
- #ship {
- /*视频设置*/
- text-align: center;
- margin-top: 50px;
- }
复制代码 名胜风景
- * {/*全局选择器*/
- margin: 0px;
- padding: 0px;
- }
- .header {
- /*头部*/
- width: 100%;
- height: 150px;
- }
- body{/*主体*/
- background-color: rgb(235, 225, 225);
- }
- #hi1 {
- /*头部图片*/
- width: 100%;
- height: 150px;
- }
- img{/*图片设置*/
- border-radius: 15px;/*边框弧度*/
- }
- .dh ul {
- /*导航栏*/
- margin-bottom: 30px;
- width: 1539px;
- padding: 0px;
- height: 30px;
- }
- .dh ul li {/*导航栏列表*/
- height: 30px;
- width: 16.45%;
- list-style: none;/*列表样式*/
- float: left;/*左浮动*/
- display: inline;/*行内显示*/
- font: 0.9em;/*字体大小*/
- }
- .dh{/*导航高度*/
- height: 30px;
- }
- .dh ul li a {/*导航链接设置*/
- text-align: center;/*文字居中*/
- color: white;
- width: 100%;
- font-size: larger;
- font-family: 楷体;
- text-decoration: none;/*下划线无*/
- display: block;/*块显示*/
- background-color: rgb(87, 156, 241);
- line-height: 40px;
- border-bottom: 1px solid rgb(168, 164, 172);/*底部边框*/
- }
- .dh ul li a:hover {
- /*鼠标划导航栏时过时*/
- color: rgb(0, 0, 0);
- background-color: rgb(37, 84, 155);
- border-bottom: 3px solid rgb(16, 4, 28);
- }
- .footer {
- /*尾部*/
- margin-top: 10px;
- clear: both;/*清除浮动*/
- width: 100%;
- height: 70px;
- background-color: rgb(87, 156, 241);
- color: rgb(28, 41, 99);
- font: italic 14px/20px 宋体;/*字体设置*/
- text-align: center;
- }
- .footer p{/*底部段落设置*/
- margin-top: 10px;
- }
- #fi1 {
- /*尾部图片*/
- width: 100px;
- height: 70px;
- float: right;/*右浮动*/
- padding: 0px;
- }
- span{
- /*>>>行内设置*/
- float: right;
- }
- span p{/*>>>行内段落设置*/
- font-size: small;
- }
- span a{/*链接设置*/
- color: rgb(0, 0, 0);
- }
- span a:hover{/*鼠标划过时链接变化*/
- color: rgb(77, 248, 10);
- }
- .zhuti h2{/*主体标题设置*/
- color: red;
- font-family: 楷体;/*字体样式*/
- margin-top: 20px;
- }
- .zhuti{/*主体设置*/
- text-align: center;/*文本居中*/
- margin: 0px 200px 0px 200px;
- background-color: rgb(235, 225, 225);
- }
- #taiba{/*太白介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #taiba p{
- letter-spacing: 2px;/*字简介*/
- text-indent: 2em;/*缩进*/
- line-height: 1.5em;/*行高设置*/
- font-size: large;
- }
- #taiba img{/*太白图片*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #taiba img:hover {/*鼠标划过时*/
- transform: scale(1.2);
- }
- #caoyuan{/*关山草原介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #caoyuan p{/*关山草原段落*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #caoyuan img{/*关山草原图片*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #caoyuan img:hover {/*鼠标关山草原图片时*/
- transform: scale(1.2);
- }
- #jialin{/*嘉陵江源头介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #jialin p{/*嘉陵江源头段落*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #jialin img{/*嘉陵江源头图片*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #jialin img:hover {/*鼠标划过时嘉陵江源头图片*/
- transform: scale(1.2);
- }
- #baiyuan{/*黄柏塬介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #baiyuan p{/*黄柏塬段落设置*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #baiyuan img{/*黄柏塬图片*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #baiyuan img:hover {/*鼠标划过时黄柏塬图片*/
- transform: scale(1.2);
- }
- #honghe{/*红河谷介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #honghe p{/*红河谷段落设置*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #honghe img{/*红河谷图片*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #honghe img:hover {/*鼠标划过红河谷图片*/
- transform: scale(1.2);
- }
- #tongtian{/*通天河国家森林公园介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #tongtian p{/*通天河国家森林公园段落设置*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #tongtian img{/*通天河国家森林公园图片设置*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #tongtian img:hover {/*鼠标划过通天河国家森林公园图片*/
- transform: scale(1.2);
- }
- #jifen{/*鸡峰山介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;/*字体大小*/
- padding: 10px;
- font-family: 楷体;
- }
- #jifen p{/*鸡峰山段落设置*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #jifen img{/*鸡峰山图片设置*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #jifen img:hover {/*鼠标划过鸡峰山图片设置*/
- transform: scale(1.2);
- }
- #qianhu{/*千湖国家湿地公园介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #qianhu p{/*千湖国家湿地公园段落设置*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #qianhu img{/*千湖国家湿地公园图片设置*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #qianhu img:hover {/*鼠标划过千湖国家湿地公园图片设置*/
- transform: scale(1.2);
- }
- #longmen{/*陕西省龙门洞森林公园介绍*/
- margin-top: 20px;
- height: 200px;
- background-color: rgb(235, 225, 225);
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #longmen p{/*陕西省龙门洞森林公园段落设置*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #longmen img{/*陕西省龙门洞森林公园图片设置*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #longmen img:hover {/*鼠标划过陕西省龙门洞森林公园图片设置*/
- transform: scale(1.2);
- }
- #qinfen{/*青峰峡森林公园介绍*/
- margin-top: 20px;
- height: 200px;
- background-color:w;
- font-size: x-large;
- padding: 10px;
- font-family: 楷体;
- }
- #qinfen p{/*青峰峡森林公园段落设置*/
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- font-size: large;
- }
- #qinfen img{/*青峰峡森林公园图片设置*/
- height: 200px;
- width: 300px;
- float: left;
- margin: 0px 10px 0px 0px;
- }
- #qinfen img:hover {/*鼠标划过青峰峡森林公园图片设置*/
- transform: scale(1.2);
- }
- .zhuti a{/*主体超链接设置*/
- text-decoration: none;
- }
复制代码 美食特色
- * {
- /*全局选择器*/
- margin: 0px;
- padding: 0px;
- }
- body {
- /*主体*/
- color: aliceblue;
- /*颜色*/
- font-family: 楷体;
- /*字体样式*/
- background-color: rgb(235, 225, 225);
- }
- .header {
- /*头部*/
- width: 100%;
- height: 150px;
- }
- #hi1 {
- /*头部图片*/
- width: 100%;
- height: 150px;
- }
- .dh ul {
- /*导航栏*/
- margin-bottom: 30px;
- padding: 0px;
- height: 30px;
- width: 1539px;
- }
- .dh ul li {
- /*导航栏列表*/
- height: 30px;
- width: 16.45%;
- list-style: none;
- /*列表样式无*/
- float: left;
- /*左浮动*/
- display: inline;
- /*行内显示*/
- font: 0.9em;
- }
- .dh ul li a {
- /*导航栏超链接*/
- text-align: center;
- color: white;
- width: 100%;
- font-size: larger;
- text-decoration: none;
- /*下划线无*/
- display: block;
- background-color: rgb(87, 156, 241);
- line-height: 40px;
- border-bottom: 1px solid rgb(168, 164, 172);
- }
- .dh ul li a:hover {
- /*鼠标划过时*/
- color: rgb(0, 0, 0);
- background-color: rgb(37, 84, 155);
- border-bottom: 3px solid rgb(16, 4, 28);
- }
- .footer {
- /*尾部*/
- clear: both;
- width: 100%;
- height: 70px;
- background-color: rgb(87, 156, 241);
- color: rgb(28, 41, 99);
- font: italic 14px/20px 宋体;
- text-align: center;
- }
- .footer p {
- /*尾部段落*/
- margin-top: 10px;
- }
- #fi1 {
- /*尾部图片*/
- width: 100px;
- height: 70px;
- float: right;
- padding: 0px;
- }
- .zhuti {
- /*主体*/
- margin: 10px 150px 0px 150px;
- background-color: burlywood;
- }
- #zhutiright {
- /*美食排行耪标题主体右边*/
- width: 25%;
- height: 400px;
- background-color: aqua;
- float: left;
- }
- #d1 {
- /*美食排行耪标题主体右边*/
- font-family: 黑体;
- font-size: 100%;
- color: white;
- float: left;
- background-color: rgb(134, 16, 16);
- width: 100px;
- height: 20px;
- padding: 5px 5px;
- margin: 4px;
- }
- #d2 {
- /*美食排行耪内容设置*/
- clear: both;
- }
- #zhutiright ul li {
- /*列表设置*/
- list-style-type: none;
- /*列表样式无*/
- }
- #zhutiright ul {
- /*列表设置*/
- margin: 0px;
- padding: 15px 10px 15px 10px;
- }
- #zhutiright ul li a {
- /*列表超链接设置*/
- display: block;
- text-decoration: none;
- color: black;
- line-height: 30px;
- border-bottom: 1px dashed black;
- padding: 0px 0px 0px 0px;
- }
- #zhutiright span {
- /*排列大小*/
- float: right;
- }
- #zhutileft {
- /*主体左边设置*/
- width: 50%;
- height: 400px;
- background-color: aquamarine;
- float: left;
- overflow: hidden;
- /*隐藏*/
- border-radius: 5px;
- /*弧度*/
- }
- #photo {
- /*动画设置图片*/
- display: block;
- width: 3045px;
- height: 400px;
- animation: bj 8s linear infinite;
- /*动画*/
- }
- #photo img {
- /*图片设置*/
- float: left;
- width: 609px;
- height: 100%;
- padding: 0px 0px 0px 0px;
- }
- /*轮播图动画*/
- @keyframes bj {
- 0%,
- 20% {
- margin-left: 0px;
- }
- 25%,
- 40% {
- margin-left: -609px;
- }
- 45%,
- 60% {
- margin-left: -1218px;
- }
- 65%,
- 80% {
- margin-left: -1827px;
- }
- 85%,
- 100% {
- margin-left: -2436px;
- }
- }
- #zhutimain {
- /*中间内容设置*/
- width: 25%;
- height: 400px;
- background-color: rgb(201, 199, 206);
- float: left;
- text-align: center;
- }
- #zhutimain img {
- /*中部图片设置*/
- border-radius: 5px;
- width: 250px;
- height: 160px;
- margin: 8px 0px 0px 0px;
- }
- #zhutimain img:hover {
- /*划过中间图片设置*/
- transform: scale(1.2);
- }
- #zhutimain h4 {
- /*中间内容标题设置*/
- color: brown;
- }
- #zhutimain a {
- /*中间内容超链接设置*/
- text-decoration: none;
- /*下划线无*/
- color: rgb(16, 159, 21);
- }
- #zhutimain a:hover {
- /*划过中间主体超链接设置*/
- color: rgb(120, 8, 109);
- }
- #zhutimain p {
- /*中间主体段落设置*/
- margin: 3px 5px 0px 5px;
- letter-spacing: 2px;
- /*字间距设置*/
- text-indent: 2em;
- line-height: 1.5em;
- }
- #bottom {
- /*底部四个美食div设置*/
- width: 100%;
- height: 300px;
- background-color: blueviolet;
- clear: both;
- }
- #meishi1 {
- /*美食1设置*/
- float: left;
- width: 24%;
- height: 300px;
- background-color: rgb(255, 255, 255);
- text-align: center;
- border-style: solid;
- }
- #meishi1 img {
- /*美食1图片设置*/
- border-radius: 5px;
- width: 250px;
- height: 160px;
- margin: 8px 0px 0px 0px;
- }
- #meishi1 img:hover {
- /*划过美食1图片设置*/
- transform: scale(1.2);
- }
- #meishi1 h4 {
- /*美食1标题设置*/
- color: brown;
- }
- #meishi1 a {
- /*美食1超链接设置*/
- text-decoration: none;
- color: rgb(16, 159, 21);
- }
- #meishi1 a:hover {
- /*划过美食1超链接设置*/
- color: rgb(120, 8, 109);
- }
- #meishi1 p {
- /*美食1段落设置*/
- margin: 3px 5px 0px 5px;
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- }
- #meishi2 {
- /*美食2设置*/
- float: left;
- width: 25%;
- height: 300px;
- background-color: rgb(255, 255, 255);
- text-align: center;
- border-style: solid;
- border-left: none;
- }
- #meishi2 img {
- border-radius: 5px;
- width: 250px;
- height: 160px;
- margin: 8px 0px 0px 0px;
- }
- #meishi2 img:hover {
- transform: scale(1.2);
- }
- #meishi2 h4 {
- color: brown;
- }
- #meishi2 a {
- text-decoration: none;
- color: rgb(16, 159, 21);
- }
- #meishi2 a:hover {
- color: rgb(120, 8, 109);
- }
- #meishi2 p {
- margin: 3px 5px 0px 5px;
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- }
- #meishi3 {
- /*美食3设置*/
- float: left;
- width: 25%;
- height: 300px;
- background-color: rgb(255, 255, 255);
- text-align: center;
- border-style: solid;
- border-left: none;
- }
- #meishi3 img {
- border-radius: 5px;
- width: 250px;
- height: 160px;
- margin: 8px 0px 0px 0px;
- }
- #meishi3 img:hover {
- transform: scale(1.2);
- }
- #meishi3 h4 {
- color: brown;
- }
- #meishi3 a {
- text-decoration: none;
- color: rgb(16, 159, 21);
- }
- #meishi3 a:hover {
- color: rgb(120, 8, 109);
- }
- #meishi3 p {
- margin: 3px 5px 0px 5px;
- letter-spacing: 2px;
- text-indent: 2em;
- line-height: 1.5em;
- }
- #meishi4 {
- /*美食4设置*/
- float: left;
- width: 25%;
- height: 300px;
- background-color: rgb(255, 255, 255);
- text-align: center;
- border-style: solid;
- border-left: none;
- }
- #meishi4 img {
- border-radius: 5px;
- width: 250px;
- height: 160px;
- margin: 8px 0px 0px 0px;
- }
- #meishi4 img:hover {
- transform: scale(1.2);
- }
- #meishi4 h4 {
- color: brown;
- }
- #meishi4 a {
- text-decoration: none;
- color: rgb(16, 159, 21);
- }
- #meishi4 a:hover {
- color: rgb(120, 8, 109);
- }
- #meishi4 p {
- margin: 3px 5px 0px 5px;
- letter-spacing: 2px;
- /*字间距设置*/
- text-indent: 2em;
- line-height: 1.5em;
- }
复制代码 站长简介
- * {
- /*全局选择器*/
- margin: 0px;
- padding: 0px;
- }
- body {
- /*主体*/
- color: rgb(0, 0, 0);
- font-family: 楷体;
- background-color: rgb(218, 202, 202);
- }
- .header {
- /*头部*/
- width: 100%;
- height: 150px;
- }
- #hi1 {
- /*头部图片*/
- width: 100%;
- height: 150px;
- }
- .dh ul {
- /*导航栏*/
- margin-bottom: 30px;
- padding: 0px;
- width: 1539px;
- height: 30px;
- }
- .dh ul li {
- /*导航栏链接*/
- height: 30px;
- width: 16.45%;
- list-style: none;
- float: left;
- display: inline;
- font: 0.9em;
- }
- .dh ul li a {
- /*导航栏超链接*/
- text-align: center;
- color: white;
- width: 100%;
- font-size: larger;
- text-decoration: none;
- display: block;
- background-color: rgb(87, 156, 241);
- line-height: 40px;
- border-bottom: 1px solid rgb(168, 164, 172);
- }
- .dh ul li a:hover {
- /*鼠标划过时*/
- color: rgb(0, 0, 0);
- background-color: rgb(37, 84, 155);
- border-bottom: 3px solid rgb(16, 4, 28);
- }
- .footer {
- /*尾部*/
- margin-top: 10px;
- clear: both;
- width: 100%;
- height: 70px;
- background-color: rgb(87, 156, 241);
- color: rgb(28, 41, 99);
- font: italic 14px/20px 宋体;
- text-align: center;
- }
- .footer p {
- /*尾部段落*/
- margin-top: 10px;
- }
- #fi1 {
- /*尾部图片*/
- width: 100px;
- height: 70px;
- float: right;
- padding: 0px;
- }
- #zhuti {
- /*主体*/
- margin: 10px 300px 0px 300px;
- background-color: blueviolet;
- }
- #left {
- /*左边div设置*/
- width: 28.5%;
- padding: 5px;
- height: 600px;
- float: left;
- background-color: rgb(218, 202, 202);
- }
- #geqian h2 {
- /*个签*/
- margin: 30px 0px 0px 0px;
- padding: 10px;
- height: 100px;
- }
- #right {
- /*右边*/
- width: 60%;
- height: 565px;
- background-color: rgb(218, 202, 202);
- float: left;
- border: 0px double rgb(64, 151, 120);
- margin: 20px 0px 50px 50px;
- /*外边距*/
- box-shadow: 20px 20px 25px 10px #242443;
- /*阴影*/
- border-radius: 100px;
- /*弧度设置*/
- }
- #shijian {
- /*时间*/
- text-align: center;/*文本居中*/
- margin: 90px 0px 0px 0px;
- height: 150px;
- }
- #ri {
- /*日*/
- font-size: 45px;
- margin: 0px 0px 5px 0px;
- }
- #nianyue {
- /*年月*/
- font-size: 20px;
- }
- #tt {
- /*几点*/
- margin-top: 5px;
- }
- table {
- /*表格*/
- border-color: rgb(64, 151, 120);
- }
- #xinxi {
- /*信息*/
- height: 200px;
- }
- #zhan1 {
- /*右边标题*/
- margin: 30px 0px 30px 0px;
- text-align: center;
- }
- #zhan2 {
- /*右边内容设置*/
- font-size: large;
- width: 60%;
- margin: 40px 10px 0px 70px;
- }
- #zhan2 ul li {
- /*右边列表设置*/
- height: 30px;
- font: 0.9em;
- }
- #tuijian {
- /*推荐设置*/
- margin: 10px 0px 0px 30px;
- }
- #shu {
- /*书设置*/
- margin-left: 30px;
- }
- #zong {
- /*综艺设置*/
- margin-top: 80px;
- }
- #zongyi {
- /*综艺设置*/
- margin: 10px 0px 0px 30px;
- }
- #qita {
- /*其他*/
- margin-top: 250px;
- }
复制代码 在线调查
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>diaocha</title>
- <link type="text/css" rel="stylesheet" href="diaocha.css">
- </head>
- <body>
- <div class="header">
- <!--头部-->
- <img id="hi1" src="tupian/baoji9.jpg">
- </div>
- <div class="dh">
- <!--导航栏 -->
- <ul>
- <li><a href="我的家乡.html#">首页</a></li>
- <li><a href="家乡简介.html#">家乡简介</a></li>
- <li><a href="风景名胜.html#">风景名胜</a></li>
- <li><a href="美食特色.html#">美食特色</a></li>
- <li><a href="站长简介.html#">站长简介</a></li>
- <li><a href="在线调查.html#">在线调查</a></li>
- </ul>
- </div>
- <div id="main">
- <form>
- <fieldset>
- <!--定义域标题-->
- <legend align="center">在线调查</legend>
- 1.您的家乡:<input name="jiaxiang" type="text"><br><br>
- 2.你了解你的家乡吗?<br><input name="lj" type="radio" value="liaojie" checked="checked" />了解<br>
- <input name="lj" type="radio" value="henliaojie" />很了解<br>
- <input name="lj" type="radio" value="buliaojie" />不了解<br>
- <input name="fenqi" type="radio" value="bijiaohao" />比较好<br>
- <input name="fenqi" type="radio" value="bijiaocha" />比较差<br>
- <input name="fenqi" type="radio" value="buqingchu" />不太清楚<br><br>
- 3.您心目中的家乡是什么样子的?(可多选)<br><input name="yangzi" type="checkbox" value="1"
- checked="checked" />经济水平明显提高,人们的钱袋子鼓起来<br>
- <input name="yangzi" type="checkbox" value="2" />出行变得更加方便,道路通畅,交通便利<br>
- <input name="yangzi" type="checkbox" value="2" /> 生活水平改善,文化娱乐生活丰富<br>
- <input name="yangzi" type="checkbox" value="2" /> 美食丰富,传统小吃和特色美食回归,人们也讲究科学饮食<br>
- <input name="yangzi" type="checkbox" value="2" />社会福利丰富,社会保障完善,风气优良<br>
- <input name="yangzi" type="checkbox" value="2" />回归传统,保留一份传统的田园生活气息<br>
- <input name="yangzi" type="checkbox" value="2" /> 其他补充<br><br>
- 4.您认为您的家乡有什么传统:<br><textarea name="chuantong" rows="3" cols="50" wrap="virtual"></textarea><br><br>
- 5.您认为您的家乡有什么美食特色:<br><textarea name="meishi" rows="3" cols="50" wrap="virtual"></textarea><br><br>
- 6.您认为您的家乡有什么名胜风景:<br><textarea name="fengjin" rows="3" cols="50" wrap="virtual"></textarea><br><br>
- 7.您觉得您的家乡的社会风气如何?<br><input name="fenqi" type="radio" value="henhao" checked="checked" />很好<br><br>
- 8.请填写您的宝贵意见:<br><textarea name="yijian" rows="5" cols="50" wrap="virtual"></textarea>
- <br>
- </fieldset>
- <div id="tijiao">
- <!--提交重置-->
- <input type="submit" name="submit" value="提交">
- <input type="reset" name="reset" value="重置">
- </div>
- </form>
- </div>
- <div id="" class="footer">
- <!--页尾-->
- <img id="fi1" src="tupian/baoji1.jpg">
- <p>
- 古城宝鸡 璀璨文明
- </p>
- <p>
- welcome to baoji|宝鸡欢迎您!
- </p>
- </div>
- </body>
- </html>
复制代码- * {
- /*全局选择器*/
- margin: 0px;
- padding: 0px;
- }
- body {
- /*主体*/
- color: rgb(0, 0, 0);
- font-family: 楷体;
- background-color: rgb(218, 202, 202);
- }
- .header {
- /*头部*/
- width: 100%;
- height: 150px;
- }
- #hi1 {
- /*头部图片*/
- width: 100%;
- height: 150px;
- }
- .dh ul {
- /*导航栏*/
- margin-bottom: 30px;
- padding: 0px;
- width: 1539px;
- height: 30px;
- }
- .dh ul li {
- /*导航栏列表*/
- height: 30px;
- width: 16.45%;
- list-style: none;
- /*列表样式无*/
- float: left;
- /*左浮动*/
- display: inline;
- /*行内显示*/
- font: 0.9em;
- }
- .dh ul li a {
- /*导航栏超链接*/
- text-align: center;
- /*文本居中*/
- color: white;
- width: 100%;
- font-size: larger;
- text-decoration: none;
- display: block;
- background-color: rgb(87, 156, 241);
- line-height: 40px;
- border-bottom: 1px solid rgb(168, 164, 172);
- }
- .dh ul li a:hover {
- /*鼠标划过时*/
- color: rgb(0, 0, 0);
- background-color: rgb(37, 84, 155);
- border-bottom: 3px solid rgb(16, 4, 28);
- }
- .footer {
- /*尾部*/
- margin-top: 10px;
- clear: both;
- /*清除浮动*/
- width: 100%;
- height: 70px;
- background-color: rgb(87, 156, 241);
- color: rgb(28, 41, 99);
- font: italic 14px/20px 宋体;
- /*字体设置*/
- text-align: center;
- }
- .footer p {
- /*尾部段落*/
- margin-top: 10px;
- }
- #fi1 {
- /*尾部图片*/
- width: 100px;
- height: 70px;
- float: right;
- padding: 0px;
- }
- #main {
- /*主体内容设置*/
- font-size: large;
- color: rgb(6, 2, 69);
- margin: 30px 300px 30px 300px;
- }
- #tijiao {
- /*提交按钮*/
- margin-top: 20px;
- text-align: center;
- }
- #tijiao input {
- width: 100px;
- height: 35px;
- background-color: rgb(99, 150, 134);
- }
- fieldset {
- /*定义域设置*/
- padding: 20px;
- }
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |