家具设计网页制作 第1篇
设计一个样式美观又人性化的网页,除了具备扎实的专业知识,还需具备美学和人机工程学等相关知识,优秀的网页应具备以下几个特点:
尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;
要满足使用者的要求,网页适合使用,显示出其功能美;
围绕一个统一的目标设计,强调整体的功能性;
尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。
发挥网络的优势,想方设法使每个使用者都参与到其中来。
家具设计网页制作 第2篇
var urlstr = ;
//alert((urlstr + '/').indexOf($(this).attr('href')));
var urlstatus=false;
$(_#menu a_).each(function () {
if ((urlstr + '/').indexOf($(this).attr('href')) > -1&&$(this).attr('href')!='') {
$(this).addClass('cur'); urlstatus = true;
} else {
$(this).removeClass('cur');
}
});
if (!urlstatus) {$(_#menu a_).eq(0).addClass('cur'); }
...
代码如下(节选示例):
@charset _utf-8_; html{ font:normal _微软雅黑_,Arial,_宋体_;} body{ margin:0px; padding:0px; margin:0px auto; font-size:; color:#414446; width:100%; min-width:1200px; width:expression(( < 1200) ? _1200px_ : _100%_ ); zoom:1;} ul,li,form, dl,dt,dd, div{ padding: 0px; margin: 0px; list-style:none;} select,input,textarea{ border-radius:0; -webkit-border-radius:0; color:#414446;} input:focus { outline: none;} input,button,select,textarea{outline:none;/*-webkit-appearance:none;*//*强制去除表单自带的样式*/ } textarea{resize:none;/*-webkit-appearance:none;*//*强制去除textarea自带的样式*/ } textarea,input,select { background:none; border:none; margin:0; padding:0;} article,aside,footer,header,hgroup,nav,section,figure,figcaption{ display: block;} /*html5设置*/ figure,figcaption{ margin:0px; padding:0px;} audio,canvas,progress,video { display: inline-block; vertical-align: baseline;} img{ border:none; border:0; max-width:100%; vertical-align:top;} a{ color:#414446; text-decoration:none; noline:-webkit-tap-highlight-color:rgba(0,0,0,0);} a:focus {outline:none; -moz-outline:none;} a:hover{ text-decoration:none;} .clear{ clear:both; height:0px; overflow:hidden;}
.Contain{ width:1200px; margin:0 auto;} .SildeBar{} .MainContent{} .Content{} .SinglePage{ text-justify:inter-ideograph; text-align:justify; word-wrap:break-word; clear:both; overflow:hidden; font-size:13px; line-height:24px;}
.Current{}
/*pages*/ .Pages{} /*pages end*/
/*Top*/
/*#whyGeely .Top_bg{ position:absolute; left:0; top:0; width:100%; background:#fff; z-index:3;}*/ #whyGeely .viewport-cont{ height:760px;} #whyGeely .viewport-cont-bottom{ height:auto; overflow:hidden;}
.Top{ height:100px; width:1200px; margin:0 auto; position:relative; z-index:3;} .Top .logo{ float:left; margin-top:23px;} .Top .logo a{ display:block; width:148px; height:57px;} .mainnav{ position:absolute; right:20px; bottom:30px;} .mainnav li{ float:left; color:#b5b5b5;} .mainnav li a{ display:block; padding:0 30px; font-size:14px;} .mainnav li a:hover{color:#F00;} .mainnav a{ color:#e60012;} .nava{color:#b5b5b5;} .cur {color:red; }
.Top .search_btn{ position:absolute; right:0; bottom:37px; width:12px; height:12px; display:block; background:url(../images/) no-repeat;}
.Top .searchbox{ position:absolute; right:0; bottom:23px; width:830px; height:43px; background:#fff; overflow:hidden; display:none; border:1px solid #f2f2f2;} .Top .searchbox a{ float:right; width:32px; height:45px; background:url(../images/) no-repeat center; margin-right:5px;} .Top .searchbox input{ padding:0 0 0 20px; width:770px; line-height:45px; height:45px; font-size:14px; color:#777;}
/*Top*/
/*Bottom*/ .Bottom{ width:1200px; margin:0 auto; padding:15px; margin-top:2px;} .Bottom .div{ float:left;/* width:164px;*/ width:140px;} .Bottom .div .h3{ font-weight:normal; font-size:12px; color:#333; margin:0; line-height:20px; font-weight:600;} .Bottom .div li{ height:20px; line-height:20px;} .Bottom .div li a{ line-height:20px; color:#666; font-size:12px !important;}
.Bottom .div6{ width:100px;}
.Bottom .b_tel{ float:right; width:210px;} .Bottom .b_tel .h3,.Bottom .b_tel p{ margin:0;} .Bottom .b_tel .h3{ font-size:14px; color:#999; font-weight:normal; padding-left:20px; background:url(../images/) no-repeat left center;} .Bottom .b_tel p{ padding:5px 0; font-size:18px; color:#e6002e; } .Bottom .b_tel .erweima{/* padding-top:15px;*/} .Bottom .b_tel .erweima li{ float:left; width:38px; height:38px; margin-right:20px; position:relative;} .Bottom .b_tel .erweima li div{ position:absolute; left:50%; bottom:41px; width:0; height:102px; background:url(../images/) no-repeat; transition:all 300ms; -webkit-transition:all 300ms;} .Bottom .b_tel .erweima .li1{ background:url(../images/) no-repeat center top; transition:all 300ms; -webkit-transition:all 300ms;} .Bottom .b_tel .erweima .li1:hover{ background-position:center bottom;} .Bottom .b_tel .erweima .li2{ background:url(../images/) no-repeat center top; transition:all 300ms; -webkit-transition:all 300ms;} .Bottom .b_tel .erweima .li2:hover{ background-position:center bottom;} .Bottom .b_tel .erweima li:hover div{ width:98px; padding:10px 11px; margin-left:-59px;}
.Bottom .Copyright{ line-height:55px; margin-top:10px; border-top:1px solid #e8e8e8;} .Bottom .Copyright,.Bottom .Copyright a{ color:#999;} .Bottom .Copyright .BottomLinks{ float:right;} .Bottom .Copyright .BottomLinks em{ font-style:normal; padding:0 10px; color:#f2f2f2;}
/*Bottom*/
/*SildeBar*/ .SildeBar{} /*SildeBar*/
/*Banner*/ .HomeBan{ height:605px; position:relative;} .HomeBan .bd{ height:605px; position:relative;} .HomeBan .bd li{ width:100%; height:605px;background-size: 1920px 605px !important;}
.HomeBan .hd{ position:absolute; left:0; bottom:20px; text-align:center; width:100%;} .HomeBan .hd li{ width:10px; height:10px; cursor:pointer; background:url(../images/) no-repeat center top; display:inline-block; margin:0 10px;} .HomeBan .hd { background-position:center bottom;}
...
代码如下(节选示例):
$(function($) {'use strict',
// Feature Tab Content $('.features-nav li').on('click',function(){'use strict', $('.features-nav li').removeClass('active'); $(this).addClass('active'); }); $('#community-carousel li').on('click',function(){'use strict', $('.features-nav li').removeClass('active'); var lists = $('.features-nav li'); $(lists[$(this).index()]).addClass('active'); });
// Coummunity Carousel $('#community-carousel').carousel({ interval: false });
// portfolio filter $(document).ready(function(){'use strict', $portfolio_selectors = $('.portfolio-filter >li>a'); if($portfolio_selectors!='undefined'){ $portfolio = $('.portfolio-items'); $({ itemSelector : '.col-sm-3', layoutMode : 'fitRows' }); $('click', function(){ $('active'); $(this).addClass('active'); var selector = $(this).attr('data-filter'); $({ filter: selector }); return false; }); } });
// Contact form validation var form = $('.contact-form'); (function () {'use strict', $this = $(this); $.post($(this).attr('action'), function(data) { $().text().fadeIn().delay(3000).fadeOut(); },'json'); return false; });
// Navigation Scroll $(window).scroll(function(event) { Scroll(); });
$('.navbar-collapse ul li a').click(function() { $('html, body').animate({scrollTop: $().offset().top - 79}, 1000); return false; });
});
//Preloder script $(document).ready(function(){'use strict'; $(_.preloader_).remove(); $(_a[data-rel]_).prettyPhoto();
// Slider Height //var slideHeight = $(window).height(); var slideHeight = 609; $('#home-carousel .carousel-inner .item, #home-carousel .video-container').css('height',slideHeight);
$(window).resize(function(){'use strict', $('#home-carousel .carousel-inner .item, #home-carousel .video-container').css('height',slideHeight); });
...
家具设计网页制作 第3篇
一个优秀的网页应具备以下几个特点:
尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;
要满足使用者的要求,网页适合使用,显示出其功能美;
围绕一个统一的目标设计,强调整体的功能性;
尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。
发挥网络的优势,想方设法使每个使用者都参与到其中来。