目录
一、网页概述
二、网页文件
三、网页效果
四、代码展示
1.html
2.CSS
3.JS
五、总结
1.简洁实用
2.使用方便
3.整体性好
4.形象突出
5.交互式强
欢迎来到我的CSDN主页!Web前端网页制作、大学生期末大作业、课程设计、毕业设计、网页模版源码、学习资料等,更多优质博客文章、网页模板点击以下链接查阅:
仙女网页设计-CSDN博客
5000+完整代码,主题涵盖30+种类型:
一、网页概述
简单的食品包装设计网页实例,应用html+css+js,应用 Div、导航条、图片轮翻效果、注册页面、登录页面、购物车等。支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。
二、网页文件
本网页实例共包含7个页面:
三、网页效果
四、代码展示
1.html
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>绿爱官方商城_专业为您定制</title>
<meta name='keywords' content='绿爱,绿爱糖果,绿爱官网,山东绿爱糖果股份有限公司,制定糖,招待糖,广告糖,无糖薄荷糖,商务用糖,绿爱食品,aixi无糖薄荷糖'>
<meta name='description' content='绿爱糖果,山东绿爱糖果股份有限公司,专业生产销售无糖薄荷糖、商务定制糖。提供小单、快速、极致的个性化定制服务(地址:临沂市兰山区大阳路兰华地产品加工园28号楼 400-6767-870)。'>
<link rel="stylesheet" type="text/css" href="css/base.css"/>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<script type="text/javascript" charset="UTF-8" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/jquery.flexslider-min.js"></script>
</head>
<body>
<!-- 欢迎您来到绿爱官方商城购物! -->
<div class="header">
<div class="main-width">
<div class="logo">
<span><a href="#"><img src="picture/logo.png"/></a></span>
</div>
<p class="guide">
<a style="margin:0 8px 0 0 !important;" href="#">登录</a><span>|</span>
<a style="margin:0 0 0 5px !important;" href="#">注册</a>
<a href="#"><img src="picture/header_icon_01.png"/>购物车</a>
<a class="code" href="#"><img style="vertical-align:-3px !important; " src="picture/header_icon_02.png"/>微信关注</a>
</p>
<ul class="nav">
<li class="active"><a href="#">首页</a></li>
<li><a href="#">产品介绍</a></li>
<li><a href="#">定制中心</a></li>
<li><a href="#">i跨界营销</a></li>
<li><a href="#">案例分享</a></li>
<li><a href="#">帮助</a></li>
</ul>
</div>
</div>
<div class="flexslider">
<ul class="slides">
<li style="background:url(images/20170102085017147.jpg) 50% 0 no-repeat;"><a href="#" target="_blank"></a></li>
<li style="background:url(images/20161006083727207.png) 50% 0 no-repeat;"><a href="#" target="_blank"></a></li>
<li style="background:url(images/20161006083727349.png) 50% 0 no-repeat;"><a href="#" target="_blank"></a></li>
<li style="background:url(images/20161205060957998.jpg) 50% 0 no-repeat;"><a href="#" target="_blank"></a></li>
<li style="background:url(images/20161116112932142.jpg) 50% 0 no-repeat;"><a href="#" target="_blank"></a></li>
</ul>
</div>
<div class="project">
<div class="main-width">
<h1>我们可以做</h1>
<h2>私人订制、商务活动、广告糖</h2>
<div class="list">
<img src="picture/project_01.png">
<h3>企业专属包装定制</h3>
<p>
个性定制企业专属包装,让产品包装随心所欲。
</p>
</div>
<div class="list">
<img src="picture/project_02.png">
<h3>i跨界营销</h3>
<p>
通过二维码打通互联网线下到线上营销活动,使方案千变万化
</p>
</div>
<div class="list" style="border:none;">
<img src="picture/project_03.png">
<h3>数据跟踪</h3>
<p>
强大的数据跟踪平台,提供营销海量数据实时跟踪与分析。
</p>
</div>
</div>
</div>
<div class="process">
<div class="main-width">
<h1>定制流程</h1>
<h2>轻松<span class="zs">4</span>步,定制属于你的独特个性</h2>
<img src="picture/process.png">
</div>
</div>
<div class="case pb70">
<div class="main-width">
<h1>成功案例</h1>
<h2>我的开始、将是时代的开始</h2>
<div class="case-list">
<ul>
<li>
<div class="img-box">
<img id="ing_48" src="picture/20161014112423314.jpg" οnmοuseοver="Over_out(48,1);" οnmοuseοut="Over_out(48,2);">
<img id="ing_display_block_48" src="picture/20161014112423314.jpg" style="display:none;">
<img id="ing_display_none_48" src="picture/20161014112423899.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_47" src="picture/20161028154328864.jpg" οnmοuseοver="Over_out(47,1);" οnmοuseοut="Over_out(47,2);">
<img id="ing_display_block_47" src="picture/20161028154328864.jpg" style="display:none;">
<img id="ing_display_none_47" src="picture/20161028154328917.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_46" src="picture/20161028154258251.jpg" οnmοuseοver="Over_out(46,1);" οnmοuseοut="Over_out(46,2);">
<img id="ing_display_block_46" src="picture/20161028154258251.jpg" style="display:none;">
<img id="ing_display_none_46" src="picture/20161028154258151.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_45" src="picture/20161028153943127.jpg" οnmοuseοver="Over_out(45,1);" οnmοuseοut="Over_out(45,2);">
<img id="ing_display_block_45" src="picture/20161028153943127.jpg" style="display:none;">
<img id="ing_display_none_45" src="picture/20161028153943992.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_44" src="picture/20161028154136812.jpg" οnmοuseοver="Over_out(44,1);" οnmοuseοut="Over_out(44,2);">
<img id="ing_display_block_44" src="picture/20161028154136812.jpg" style="display:none;">
<img id="ing_display_none_44" src="picture/20161028154136468.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_43" src="picture/20161028154720831.jpg" οnmοuseοver="Over_out(43,1);" οnmοuseοut="Over_out(43,2);">
<img id="ing_display_block_43" src="picture/20161028154720831.jpg" style="display:none;">
<img id="ing_display_none_43" src="picture/20161028154720256.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_42" src="picture/20161028154206717.jpg" οnmοuseοver="Over_out(42,1);" οnmοuseοut="Over_out(42,2);">
<img id="ing_display_block_42" src="picture/20161028154206717.jpg" style="display:none;">
<img id="ing_display_none_42" src="picture/20161028154206879.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_41" src="picture/20161028154434275.jpg" οnmοuseοver="Over_out(41,1);" οnmοuseοut="Over_out(41,2);">
<img id="ing_display_block_41" src="picture/20161028154434275.jpg" style="display:none;">
<img id="ing_display_none_41" src="picture/20161028154434565.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_40" src="picture/20161028154824212.jpg" οnmοuseοver="Over_out(40,1);" οnmοuseοut="Over_out(40,2);">
<img id="ing_display_block_40" src="picture/20161028154824212.jpg" style="display:none;">
<img id="ing_display_none_40" src="picture/20161028154824742.jpg" style="display:none;">
</div>
</li>
<li>
<div class="img-box">
<img id="ing_39" src="picture/20161028154224742.jpg" οnmοuseοver="Over_out(39,1);" οnmοuseοut="Over_out(39,2);">
<img id="ing_display_block_39" src="picture/20161028154224742.jpg" style="display:none;">
<img id="ing_display_none_39" src="picture/20161028154224966.jpg" style="display:none;">
</div>
</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript">
function Over_out(id,num){
if(num == 1){
var src = $("#ing_display_none_"+id).attr("src");
}else{
var src = $("#ing_display_block_"+id).attr("src");
}
$("#ing_"+id).attr("src",src);
}
$(document).ready(function(){
$('.flexslider').flexslider({
directionNav: true,
pauseOnAction: false,
itemWidth:1100
});
});
</script>
<div class="footer">
<p class="advan">
<span><img src="picture/footer_icon_01.png">在线自由设计</span>
<span><img src="picture/footer_icon_02.png">72小时极速发货</span>
<span><img src="picture/footer_icon_03.png">正品质量保证</span>
<span><img src="picture/footer_icon_04.png">无忧售后服务</span>
</p>
<div class="fnav-box">
<div class="fnav">
<div class="fnav-child">
<h3><img src="picture/footer_icon_05.png">配送/支付</h3>
<h5><a href="#">物流配送</a></h5>
<h5><a href="#">支付方式</a></h5>
</div>
</div>
<div class="fnav">
<div class="fnav-child">
<h3><img src="picture/footer_icon_06.png">售后服务</h3>
<h5><a href="#">建议与投诉</a></h5>
<h5><a href="#">退换货服务</a></h5>
<h5><a href="#">如何退换货</a></h5>
<h5><a href="#">发票制度</a></h5>
</div>
</div>
2.CSS
.city-picker-dropdown {display:none;}
.glyphicon {
position: relative;
top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.img-rounded {
border-radius: 6px;
}
.img-thumbnail {
display: inline-block;
max-width: 100%;
height: auto;
padding: 4px;
line-height: 1.42857143;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
-webkit-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
.img-circle {
border-radius: 50%;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
[role="button"] {
cursor: pointer;
}
.lead {
margin-bottom: 20px;
font-size: 16px;
font-weight: 300;
line-height: 1.4;
}
@media (min-width: 768px) {
.lead {
font-size: 21px;
}
}
small,
.small {
font-size: 85%;
}
mark,
.mark {
padding: .2em;
background-color: #fcf8e3;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
.text-justify {
text-align: justify;
}
.text-nowrap {
white-space: nowrap;
}
.text-lowercase {
text-transform: lowercase;
}
.text-uppercase {
text-transform: uppercase;
}
.text-capitalize {
text-transform: capitalize;
}
.text-muted {
color: #777;
}
.text-primary {
color: #337ab7;
}
a.text-primary:hover,
a.text-primary:focus {
color: #286090;
}
.text-success {
color: #3c763d;
}
a.text-success:hover,
a.text-success:focus {
color: #2b542c;
}
.text-info {
color: #31708f;
}
a.text-info:hover,
a.text-info:focus {
color: #245269;
}
.text-warning {
color: #8a6d3b;
}
a.text-warning:hover,
a.text-warning:focus {
color: #66512c;
}
.text-danger {
color: #a94442;
}
a.text-danger:hover,
a.text-danger:focus {
color: #843534;
}
.bg-primary {
color: #fff;
background-color: #337ab7;
}
a.bg-primary:hover,
a.bg-primary:focus {
background-color: #286090;
}
.bg-success {
background-color: #dff0d8;
}
a.bg-success:hover,
a.bg-success:focus {
background-color: #c1e2b3;
}
.bg-info {
background-color: #d9edf7;
}
a.bg-info:hover,
a.bg-info:focus {
background-color: #afd9ee;
}
.bg-warning {
background-color: #fcf8e3;
}
a.bg-warning:hover,
a.bg-warning:focus {
background-color: #f7ecb5;
}
.bg-danger {
background-color: #f2dede;
}
a.bg-danger:hover,
a.bg-danger:focus {
background-color: #e4b9b9;
}
.page-header {
padding-bottom: 9px;
margin: 40px 0 20px;
border-bottom: 1px solid #eee;
}
.list-inline {
padding-left: 0;
margin-left: -5px;
list-style: none;
}
.list-inline > li {
display: inline-block;
padding-right: 5px;
padding-left: 5px;
}
dt,
dd {
line-height: 1.42857143;
}
@media (min-width: 768px) {
.dl-horizontal dt {
float: left;
width: 160px;
overflow: hidden;
clear: left;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
}
.dl-horizontal dd {
margin-left: 180px;
}
}
abbr[title],
abbr[data-original-title] {
cursor: help;
border-bottom: 1px dotted #777;
}
.initialism {
font-size: 90%;
text-transform: uppercase;
}
blockquote {
padding: 10px 20px;
margin: 0 0 20px;
font-size: 17.5px;
border-left: 5px solid #eee;
}
blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
margin-bottom: 0;
}
blockquote footer,
blockquote small,
blockquote .small {
display: block;
font-size: 80%;
line-height: 1.42857143;
color: #777;
}
blockquote footer:before,
blockquote small:before,
blockquote .small:before {
content: '\2014 \00A0';
}
.blockquote-reverse,
blockquote.pull-right {
padding-right: 15px;
padding-left: 0;
text-align: right;
border-right: 5px solid #eee;
border-left: 0;
}
.blockquote-reverse footer:before,
blockquote.pull-right footer:before,
.blockquote-reverse small:before,
blockquote.pull-right small:before,
.blockquote-reverse .small:before,
blockquote.pull-right .small:before {
content: '';
}
.blockquote-reverse footer:after,
blockquote.pull-right footer:after,
.blockquote-reverse small:after,
blockquote.pull-right small:after,
.blockquote-reverse .small:after,
blockquote.pull-right .small:after {
content: '\00A0 \2014';
}
address {
margin-bottom: 20px;
font-style: normal;
line-height: 1.42857143;
}
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
}
kbd {
padding: 2px 4px;
font-size: 90%;
color: #fff;
background-color: #333;
border-radius: 3px;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: bold;
-webkit-box-shadow: none;
box-shadow: none;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
color: #333;
word-break: break-all;
word-wrap: break-word;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px;
}
pre code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
.container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
.container-fluid {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.row {
margin-right: -15px;
margin-left: -15px;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
float: left;
}
.col-xs-12 {
width: 100%;
}
.col-xs-11 {
width: 91.66666667%;
}
.col-xs-10 {
width: 83.33333333%;
}
.col-xs-9 {
width: 75%;
}
.col-xs-8 {
width: 66.66666667%;
}
.col-xs-7 {
width: 58.33333333%;
}
.col-xs-6 {
width: 50%;
}
.col-xs-5 {
width: 41.66666667%;
}
.col-xs-4 {
width: 33.33333333%;
}
.col-xs-3 {
width: 25%;
}
.col-xs-2 {
width: 16.66666667%;
}
.col-xs-1 {
width: 8.33333333%;
}
.col-xs-pull-12 {
right: 100%;
}
.col-xs-pull-11 {
right: 91.66666667%;
}
.col-xs-pull-10 {
right: 83.33333333%;
}
.col-xs-pull-9 {
right: 75%;
}
.col-xs-pull-8 {
right: 66.66666667%;
}
.col-xs-pull-7 {
right: 58.33333333%;
}
.col-xs-pull-6 {
right: 50%;
}
.col-xs-pull-5 {
right: 41.66666667%;
}
.col-xs-pull-4 {
right: 33.33333333%;
}
.col-xs-pull-3 {
right: 25%;
}
.col-xs-pull-2 {
right: 16.66666667%;
}
.col-xs-pull-1 {
right: 8.33333333%;
}
.col-xs-pull-0 {
right: auto;
}
.col-xs-push-12 {
left: 100%;
}
.col-xs-push-11 {
left: 91.66666667%;
}
.col-xs-push-10 {
left: 83.33333333%;
}
.col-xs-push-9 {
left: 75%;
}
.col-xs-push-8 {
left: 66.66666667%;
}
.col-xs-push-7 {
left: 58.33333333%;
}
.col-xs-push-6 {
left: 50%;
}
.col-xs-push-5 {
left: 41.66666667%;
}
.col-xs-push-4 {
left: 33.33333333%;
}
.col-xs-push-3 {
left: 25%;
}
.col-xs-push-2 {
left: 16.66666667%;
}
.col-xs-push-1 {
left: 8.33333333%;
}
.col-xs-push-0 {
left: auto;
}
.col-xs-offset-12 {
margin-left: 100%;
}
.col-xs-offset-11 {
margin-left: 91.66666667%;
}
.col-xs-offset-10 {
margin-left: 83.33333333%;
}
.col-xs-offset-9 {
margin-left: 75%;
}
.col-xs-offset-8 {
margin-left: 66.66666667%;
}
.col-xs-offset-7 {
margin-left: 58.33333333%;
}
.col-xs-offset-6 {
margin-left: 50%;
}
.col-xs-offset-5 {
margin-left: 41.66666667%;
}
.col-xs-offset-4 {
margin-left: 33.33333333%;
}
.col-xs-offset-3 {
margin-left: 25%;
}
.col-xs-offset-2 {
margin-left: 16.66666667%;
}
.col-xs-offset-1 {
margin-left: 8.33333333%;
}
.col-xs-offset-0 {
margin-left: 0;
}
@media (min-width: 768px) {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
.col-sm-pull-12 {
right: 100%;
}
.col-sm-pull-11 {
right: 91.66666667%;
}
.col-sm-pull-10 {
right: 83.33333333%;
}
.col-sm-pull-9 {
right: 75%;
}
.col-sm-pull-8 {
right: 66.66666667%;
}
.col-sm-pull-7 {
right: 58.33333333%;
}
.col-sm-pull-6 {
right: 50%;
}
.col-sm-pull-5 {
right: 41.66666667%;
}
.col-sm-pull-4 {
right: 33.33333333%;
}
.col-sm-pull-3 {
right: 25%;
}
.col-sm-pull-2 {
right: 16.66666667%;
}
.col-sm-pull-1 {
right: 8.33333333%;
}
.col-sm-pull-0 {
right: auto;
}
.col-sm-push-12 {
left: 100%;
}
.col-sm-push-11 {
left: 91.66666667%;
}
.col-sm-push-10 {
left: 83.33333333%;
}
.col-sm-push-9 {
left: 75%;
}
.col-sm-push-8 {
left: 66.66666667%;
}
.col-sm-push-7 {
left: 58.33333333%;
}
.col-sm-push-6 {
left: 50%;
}
.col-sm-push-5 {
left: 41.66666667%;
}
.col-sm-push-4 {
left: 33.33333333%;
}
.col-sm-push-3 {
left: 25%;
}
.col-sm-push-2 {
left: 16.66666667%;
}
.col-sm-push-1 {
left: 8.33333333%;
}
.col-sm-push-0 {
left: auto;
}
.col-sm-offset-12 {
margin-left: 100%;
}
.col-sm-offset-11 {
margin-left: 91.66666667%;
}
.col-sm-offset-10 {
margin-left: 83.33333333%;
}
.col-sm-offset-9 {
margin-left: 75%;
}
.col-sm-offset-8 {
margin-left: 66.66666667%;
}
.col-sm-offset-7 {
margin-left: 58.33333333%;
}
.col-sm-offset-6 {
margin-left: 50%;
}
.col-sm-offset-5 {
margin-left: 41.66666667%;
}
.col-sm-offset-4 {
margin-left: 33.33333333%;
}
.col-sm-offset-3 {
margin-left: 25%;
}
.col-sm-offset-2 {
margin-left: 16.66666667%;
}
.col-sm-offset-1 {
margin-left: 8.33333333%;
}
.col-sm-offset-0 {
margin-left: 0;
}
}
@media (min-width: 992px) {
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
float: left;
}
.col-md-12 {
width: 100%;
}
.col-md-11 {
width: 91.66666667%;
}
.col-md-10 {
width: 83.33333333%;
}
.col-md-9 {
width: 75%;
}
.col-md-8 {
width: 66.66666667%;
}
.col-md-7 {
width: 58.33333333%;
}
.col-md-6 {
width: 50%;
}
.col-md-5 {
width: 41.66666667%;
}
.col-md-4 {
width: 33.33333333%;
}
.col-md-3 {
width: 25%;
}
.col-md-2 {
width: 16.66666667%;
}
.col-md-1 {
width: 8.33333333%;
}
.col-md-pull-12 {
right: 100%;
}
.col-md-pull-11 {
right: 91.66666667%;
}
.col-md-pull-10 {
right: 83.33333333%;
}
.col-md-pull-9 {
right: 75%;
}
.col-md-pull-8 {
right: 66.66666667%;
}
.col-md-pull-7 {
right: 58.33333333%;
}
.col-md-pull-6 {
right: 50%;
}
.col-md-pull-5 {
right: 41.66666667%;
}
.col-md-pull-4 {
right: 33.33333333%;
}
.col-md-pull-3 {
right: 25%;
}
.col-md-pull-2 {
right: 16.66666667%;
}
.col-md-pull-1 {
right: 8.33333333%;
}
.col-md-pull-0 {
right: auto;
}
.col-md-push-12 {
left: 100%;
}
.col-md-push-11 {
left: 91.66666667%;
}
.col-md-push-10 {
left: 83.33333333%;
}
.col-md-push-9 {
left: 75%;
}
.col-md-push-8 {
left: 66.66666667%;
}
.col-md-push-7 {
left: 58.33333333%;
}
.col-md-push-6 {
left: 50%;
}
.col-md-push-5 {
left: 41.66666667%;
}
.col-md-push-4 {
left: 33.33333333%;
}
.col-md-push-3 {
left: 25%;
}
.col-md-push-2 {
left: 16.66666667%;
}
.col-md-push-1 {
left: 8.33333333%;
}
.col-md-push-0 {
left: auto;
}
.col-md-offset-12 {
margin-left: 100%;
}
.col-md-offset-11 {
margin-left: 91.66666667%;
}
.col-md-offset-10 {
margin-left: 83.33333333%;
}
.col-md-offset-9 {
margin-left: 75%;
}
.col-md-offset-8 {
margin-left: 66.66666667%;
}
.col-md-offset-7 {
margin-left: 58.33333333%;
}
.col-md-offset-6 {
margin-left: 50%;
}
.col-md-offset-5 {
margin-left: 41.66666667%;
}
.col-md-offset-4 {
margin-left: 33.33333333%;
}
.col-md-offset-3 {
margin-left: 25%;
}
.col-md-offset-2 {
margin-left: 16.66666667%;
}
.col-md-offset-1 {
margin-left: 8.33333333%;
}
.col-md-offset-0 {
margin-left: 0;
}
}
@media (min-width: 1200px) {
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left;
}
.col-lg-12 {
width: 100%;
}
.col-lg-11 {
width: 91.66666667%;
}
.col-lg-10 {
width: 83.33333333%;
}
.col-lg-9 {
width: 75%;
}
.col-lg-8 {
width: 66.66666667%;
}
.col-lg-7 {
width: 58.33333333%;
}
.col-lg-6 {
width: 50%;
}
.col-lg-5 {
width: 41.66666667%;
}
.col-lg-4 {
width: 33.33333333%;
}
.col-lg-3 {
width: 25%;
}
.col-lg-2 {
width: 16.66666667%;
}
.col-lg-1 {
width: 8.33333333%;
}
.col-lg-pull-12 {
right: 100%;
}
.col-lg-pull-11 {
right: 91.66666667%;
}
.col-lg-pull-10 {
right: 83.33333333%;
}
.col-lg-pull-9 {
right: 75%;
}
.col-lg-pull-8 {
right: 66.66666667%;
}
.col-lg-pull-7 {
right: 58.33333333%;
}
.col-lg-pull-6 {
right: 50%;
}
.col-lg-pull-5 {
right: 41.66666667%;
}
.col-lg-pull-4 {
right: 33.33333333%;
}
.col-lg-pull-3 {
right: 25%;
}
.col-lg-pull-2 {
right: 16.66666667%;
}
.col-lg-pull-1 {
right: 8.33333333%;
}
.col-lg-pull-0 {
right: auto;
}
.col-lg-push-12 {
left: 100%;
}
.col-lg-push-11 {
left: 91.66666667%;
}
.col-lg-push-10 {
left: 83.33333333%;
}
.col-lg-push-9 {
left: 75%;
}
.col-lg-push-8 {
left: 66.66666667%;
}
.col-lg-push-7 {
left: 58.33333333%;
}
.col-lg-push-6 {
left: 50%;
}
.col-lg-push-5 {
left: 41.66666667%;
}
.col-lg-push-4 {
left: 33.33333333%;
}
.col-lg-push-3 {
left: 25%;
}
.col-lg-push-2 {
left: 16.66666667%;
}
.col-lg-push-1 {
left: 8.33333333%;
}
.col-lg-push-0 {
left: auto;
}
.col-lg-offset-12 {
margin-left: 100%;
}
.col-lg-offset-11 {
margin-left: 91.66666667%;
}
.col-lg-offset-10 {
margin-left: 83.33333333%;
}
.col-lg-offset-9 {
margin-left: 75%;
}
.col-lg-offset-8 {
margin-left: 66.66666667%;
}
.col-lg-offset-7 {
margin-left: 58.33333333%;
}
.col-lg-offset-6 {
margin-left: 50%;
}
.col-lg-offset-5 {
margin-left: 41.66666667%;
}
.col-lg-offset-4 {
margin-left: 33.33333333%;
}
.col-lg-offset-3 {
margin-left: 25%;
}
.col-lg-offset-2 {
margin-left: 16.66666667%;
}
.col-lg-offset-1 {
margin-left: 8.33333333%;
}
.col-lg-offset-0 {
margin-left: 0;
}
}
table {
background-color: transparent;
}
caption {
padding-top: 8px;
padding-bottom: 8px;
color: #777;
text-align: left;
}
th {
text-align: left;
}
.table {
width: 100%;
max-width: 100%;
margin-bottom: 20px;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
padding: 8px;
line-height: 1.42857143;
vertical-align: top;
border-top: 1px solid #ddd;
}
.table > thead > tr > th {
vertical-align: bottom;
border-bottom: 2px solid #ddd;
}
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
border-top: 0;
}
.table > tbody + tbody {
border-top: 2px solid #ddd;
}
.table .table {
background-color: #fff;
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
padding: 5px;
}
.table-bordered {
border: 1px solid #ddd;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
border: 1px solid #ddd;
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
border-bottom-width: 2px;
}
.table-striped > tbody > tr:nth-of-type(odd) {
background-color: #f9f9f9;
}
.table-hover > tbody > tr:hover {
background-color: #f5f5f5;
}
table col[class*="col-"] {
position: static;
display: table-column;
float: none;
}
table td[class*="col-"],
table th[class*="col-"] {
position: static;
display: table-cell;
float: none;
}
.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
background-color: #f5f5f5;
}
.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover,
.table-hover > tbody > tr.active:hover > td,
.table-hover > tbody > tr:hover > .active,
.table-hover > tbody > tr.active:hover > th {
background-color: #e8e8e8;
}
.table > thead > tr > td.success,
.table > tbody > tr > td.success,
.table > tfoot > tr > td.success,
.table > thead > tr > th.success,
.table > tbody > tr > th.success,
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > tbody > tr.success > td,
.table > tfoot > tr.success > td,
.table > thead > tr.success > th,
.table > tbody > tr.success > th,
.table > tfoot > tr.success > th {
background-color: #dff0d8;
}
.table-hover > tbody > tr > td.success:hover,
.table-hover > tbody > tr > th.success:hover,
.table-hover > tbody > tr.success:hover > td,
.table-hover > tbody > tr:hover > .success,
.table-hover > tbody > tr.success:hover > th {
background-color: #d0e9c6;
}
.table > thead > tr > td.info,
.table > tbody > tr > td.info,
.table > tfoot > tr > td.info,
.table > thead > tr > th.info,
.table > tbody > tr > th.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > tbody > tr.info > td,
.table > tfoot > tr.info > td,
.table > thead > tr.info > th,
.table > tbody > tr.info > th,
.table > tfoot > tr.info > th {
background-color: #d9edf7;
}
.table-hover > tbody > tr > td.info:hover,
.table-hover > tbody > tr > th.info:hover,
.table-hover > tbody > tr.info:hover > td,
.table-hover > tbody > tr:hover > .info,
.table-hover > tbody > tr.info:hover > th {
background-color: #c4e3f3;
}
.table > thead > tr > td.warning,
.table > tbody > tr > td.warning,
.table > tfoot > tr > td.warning,
.table > thead > tr > th.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th {
background-color: #fcf8e3;
}
.table-hover > tbody > tr > td.warning:hover,
.table-hover > tbody > tr > th.warning:hover,
.table-hover > tbody > tr.warning:hover > td,
.table-hover > tbody > tr:hover > .warning,
.table-hover > tbody > tr.warning:hover > th {
background-color: #faf2cc;
}
3.JS
function Form(form)
{
/**
* @brief 初始化表单项值
* @param obj Object key:表单项的name; value:表单项的值
*/
this.init = function(obj)
{
for(var item in obj)
{
this.setValue(item,obj[item]);
}
}
/**
* @brief 获取表单项全部数据对象
* @return Object key:表单项的name; value:表单项的值
*/
this.getItems = function()
{
var obj=new Object();
var elements;
if(form == undefined) elements = document.forms[0].elements;
else elements=document.forms[form].elements;
var len = elements.length;
for(var i=0;i<len;i++)
{
if(obj[elements[i].name] == undefined) obj[elements[i].name]=this.getValue(elements[i].name);
}
return obj;
}
/**
* @brief 获取表单项全部数据字符串
* @return String 查询字符串
*/
this.formatRequest = function()
{
var elements = this.getItems();
var tem='';
for(i in elements)
{
if(i!='')tem+='&'+i+'='+elements[i];
}
return tem.substr(1);
}
/**
* @brief 设置某一项表单项的值
* @param String name 表单项name
* @param String value 表单项的value
* @return String
*/
this.setValue=function(name,value)
{
var e;
if(form == undefined)
{
e = document.forms[0].elements[name];
}
else
{
e = document.forms[form].elements[name];
}
if(e==undefined) return;
switch(e.type)
{
case 'text':
case 'hidden':
case 'textarea':e.value=value;break;
case 'radio':
case 'checkbox':
{
var len = e.length;
if(len > 1)
{
var _value = (';'+value+';');
for(var i = 0; i < len; i++)
{
if(e[i]!=undefined)
{
if(value == e[i].value || _value.indexOf(';'+e[i].value+';') != -1)
{
e[i].checked = true;
}
else
{
e[i].checked = false;
}
}
}
}
else
{
if(e.value == value)
{
e.checked = true;
}
else
{
e.checked = false;
}
}
break;
}
case 'select-one': this.setSelected(e,value);break;
case 'select-multiple':
{
var len=e.length;
if (len>0)
{
var _value = (';'+value+';');
for(var j=0;j<len;j++)
{
if(e[j]!=undefined)
{
if(value==e[j].value || _value.indexOf(";"+e[j].value+";")!=-1 || value.indexOf(";"+e[j].innerHTML+";")!=-1){e[j].selected=true;}
}
}
}
break;
}
default:
{
var len=e.length;
if (len>0)
{
var _value = (';'+value+';');
for(var j=0;j<len;j++)
{
if(e[j]!=undefined)
{
if(value==e[j].value || _value.indexOf(";"+e[j].value+";")!=-1)e[j].checked=true;
}
}
}
break;
}
}
}
/**
* @brief 获取表单某一项的值
* @param String name 表单项的name
* @return String 表单项的值
*/
this.getValue = function(name)
{
var e;
if(form == undefined)
{
e = document.forms[0].elements[name];
}
else
{
e = document.forms[form].elements[name];
}
if(e==undefined) return null;
switch(e.type)
{
case 'text':
case 'hidden':
case 'textarea':return e.value;break;
case 'radio':
case 'checkbox':
{
if(e.checked)
{
return e.value;
}
break;
}
case undefined:
{
var len=e.length;
var tmp = '';
if (len>0)
{
for(var j=0;j<len;j++)
{
if(e[j]!=undefined)
{
if(e[j].checked)
{
if(e[j].value!='') tmp += e[j].value+';';
else tmp += e[j].innerText+';';
}
}
}
}
if(tmp.length>0) tmp = tmp.substring(0,(tmp.length-1));
if(tmp!='')return tmp;
else return null;
break;
}
case 'select-one': return e.value;break;
case 'select-multiple':
{
var len=e.length;
if (len>0)
{
var tmp = '';
for(var j=0;j<len;j++)
{
if(e[j]!=undefined)
{
if(e[j].checked)
{
if(e[j].value!='') tem += e[j].value+';';
else tem += e[j].innerText+';';
}
}
}
}
if(tmp.length>0) tmp = tmp.substring(0,(tmp.length-1));
if(tmp!='')return tmp;
else return null;
break;
}
}
}
/**
* @brief 设置select下拉框的选中状态
*/
this.setSelected = function(obj,value)
{
objSelect=obj;
for(var i=0;i<objSelect.options.length;i++)
{
if(objSelect.options[i].value == value || objSelect.options[i].text == value)
{
objSelect.options[i].selected = true;
break;
}
}
}
}
五、总结
一个优秀的网页应具备以下几个特点:
1.简洁实用
尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;
2.使用方便
要满足使用者的要求,网页适合使用,显示出其功能美;
3.整体性好
围绕一个统一的目标设计,强调整体的功能性;
4.形象突出
尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。
5.交互式强
发挥网络的优势,想方设法使每个使用者都参与到其中来。
更多优质博客文章、完整代码案例模板,点击以下链接查阅:
仙女网页设计-CSDN博客
Web前端网页制作、大学生期末大作业、课程设计、毕业设计、完整代码案例模板、Web前端网页定制、教学课程、学习资料等,有需要的添加以下微信交流👇🏻👇🏻👇🏻