css html5布局方式

HTML5/CSS3 single page layout – Art theme. Today I will like to product new great masterpiece – new template with codename: ‘Art theme’. This will nice HTML5 template with nice gray colors. Hope that you will like new styles and you will learn some new coding lessons. I going to start step-by-step tutorial for creating html5-css3 layout.

HTML5 / CSS3单页布局–艺术主题。 今天,我想生产新的伟大杰作–代号为“ Art theme”的新模板。 这将使HTML5模板具有很好的灰色。 希望您会喜欢新样式,并能学到一些新的编码课程。 我将开始创建html5-css3布局的分步教程。

最后结果 (Final Result)

现场演示

[sociallocker]

[社交储物柜]

下载结果

[/sociallocker]

[/ sociallocker]

开始吧 (Get started)

Well, let’s start. Lets create new folder and several folders inside (to keep all well structured):

好吧,让我们开始吧。 让我们在其中创建新文件夹和几个文件夹(以保持结构良好):

  • css – which will contain our CSS stylesheets (nivo-slider.css, reset.css and style.css)css –将包含我们CSS样式表(nivo-slider.css,reset.css和style.css)
  • images – which will contain all used images图片–将包含所有使用过的图片
  • js – will contain JS files (html5.js, jquery.js, jquery.nivo.slider.pack.js and main.js)js –将包含JS文件(html5.js,jquery.js,jquery.nivo.slider.pack.js和main.js)

头段代码 (Head section code)

Now I am going to give you the usual HTML head area of index.html with the attached CSS/JS.

现在,我将为您提供带有附件CSS / JS的index.html的常规HTML头区域。


<!DOCTYPE html><!-- The new doctype -->
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Art HTML5&amp;CSS3 single page layout | Script tutorials demo</title><meta charset="utf-8"><!-- Linking styles --><link rel="stylesheet" href="css/reset.css" type="text/css" media="screen"><link rel="stylesheet" href="css/style.css" type="text/css" media="screen"><link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen"><!-- Linking scripts --><script src="js/jquery.js" type="text/javascript"></script><script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script><script src="js/main.js" type="text/javascript"></script><!--[if lt IE 9]><script type="text/javascript" src="js/html5.js"></script><![endif]-->
</head>

<!DOCTYPE html><!-- The new doctype -->
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Art HTML5&amp;CSS3 single page layout | Script tutorials demo</title><meta charset="utf-8"><!-- Linking styles --><link rel="stylesheet" href="css/reset.css" type="text/css" media="screen"><link rel="stylesheet" href="css/style.css" type="text/css" media="screen"><link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen"><!-- Linking scripts --><script src="js/jquery.js" type="text/javascript"></script><script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script><script src="js/main.js" type="text/javascript"></script><!--[if lt IE 9]><script type="text/javascript" src="js/html5.js"></script><![endif]-->
</head>

前进–主要布局(正文) (Moving forward – Main layout (body))

Whole layout consist of 4 main section: header (with logo and navigation menu), main section (search form, social icons, slider area and first featured content area – 3 elements), second content section (two column layout for all your rest content) and footer. It looks like:

整个布局包括4个主要部分:标题(带有徽标和导航菜单),主要部分(搜索表单,社交图标,滑块区域和第一个特色内容区域-3个元素),第二个内容部分(所有其余内容的两列布局) )和页脚。 看起来像:


<body>
<div class="container"><header><!-- Defining the header section of the page --><div class="logo"><!-- Defining the logo element -->.........</div><nav><!-- Defining the navigation menu -->.........</nav></header><div id="main"><section id="social"><!-- Search form and social icons -->.........</section><section id="slider-wrapper"><!-- Promo slider -->.........</section><section id="content"><!-- Defining the content section -->.........</section></div><div id="submain"><section id="subcontent"><!-- Defining the content section #2 --><div id="left">.........</div><div id="right">.........</div><div class="clear"></div></section></div><footer><!-- Defining the footer section of the page -->.........</footer>
</div>
</body>

<body>
<div class="container"><header><!-- Defining the header section of the page --><div class="logo"><!-- Defining the logo element -->.........</div><nav><!-- Defining the navigation menu -->.........</nav></header><div id="main"><section id="social"><!-- Search form and social icons -->.........</section><section id="slider-wrapper"><!-- Promo slider -->.........</section><section id="content"><!-- Defining the content section -->.........</section></div><div id="submain"><section id="subcontent"><!-- Defining the content section #2 --><div id="left">.........</div><div id="right">.........</div><div class="clear"></div></section></div><footer><!-- Defining the footer section of the page -->.........</footer>
</div>
</body>

这是您可以看到的基本CSS样式 (here are you can see base CSS styles)


/* base styles */
body {background:url(../images/bg.jpg) repeat scroll center top #000;background-attachment:fixed;color:#737373;font-family:Georgia, "Times New Roman", Times, serif;font-size:100%/1.125em;
}
a {color:#c46501;text-decoration:underline;
}
a:hover {text-decoration:none;
}
.clear {clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0;
}
.container{margin:0 auto;position:relative;width:960px
}

/* base styles */
body {background:url(../images/bg.jpg) repeat scroll center top #000;background-attachment:fixed;color:#737373;font-family:Georgia, "Times New Roman", Times, serif;font-size:100%/1.125em;
}
a {color:#c46501;text-decoration:underline;
}
a:hover {text-decoration:none;
}
.clear {clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0;
}
.container{margin:0 auto;position:relative;width:960px
}

标头部分带有徽标和导航 (Header section with logo and navigation)

Our header will contain search bar, social icons (at top) and logo at left side. Here are HTML for that section:

我们的标题将包含搜索栏,社交图标(在顶部)和徽标在左侧。 这是该部分HTML:

<header><!-- Defining the header section of the page --><div class="logo"><!-- Defining the logo element --><a href="https://www.script-tutorials.com/"><img src="data:images/logo.png" title="Art template" alt="Art template" /></a><p>Art template</p></div><nav><!-- Defining the navigation menu --><ul><li><a href="https://www.script-tutorials.com/">Home</a></li><li><a href="https://www.script-tutorials.com/category/html-css/">Tutorials</a></li><li><a href="https://www.script-tutorials.com/about/">About</a></li><li><a href="https://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/">Go Back To The Tutorial</a></li></ul></nav></header>
<header><!-- Defining the header section of the page --><div class="logo"><!-- Defining the logo element --><a href="https://www.script-tutorials.com/"><img src="data:images/logo.png" title="Art template" alt="Art template" /></a><p>Art template</p></div><nav><!-- Defining the navigation menu --><ul><li><a href="https://www.script-tutorials.com/">Home</a></li><li><a href="https://www.script-tutorials.com/category/html-css/">Tutorials</a></li><li><a href="https://www.script-tutorials.com/about/">About</a></li><li><a href="https://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/">Go Back To The Tutorial</a></li></ul></nav></header>

标头部分CSS (CSS for header section)


/* header section */
header {height:105px;margin:0 0 6px;position:relative;width:100%;z-index:2
}
.logo {left:19px;position:absolute;text-align:center;top:20px;
}
.logo img {margin:0 auto 3px;
}
.logo p {color:#808D8D;font-size:13px;font-style:italic;line-height:16px;
}
/*navigation menu*/
nav {position:absolute;top:10px;right:0px;z-index:2;
}
nav ul, nav ul * {margin:0;padding:0;list-style:none;
}
nav ul li {float:left;position:relative;background:url(../images/menudiv.png) no-repeat scroll 0 0 transparent;padding:0 0 0 2px;
}
nav ul li a {color:#8A9CA0;display:block;font-size:18px;height:85px;line-height:120px;padding:0 0 0 8px;text-decoration:none;text-transform:uppercase;min-width:130px;
}

/* header section */
header {height:105px;margin:0 0 6px;position:relative;width:100%;z-index:2
}
.logo {left:19px;position:absolute;text-align:center;top:20px;
}
.logo img {margin:0 auto 3px;
}
.logo p {color:#808D8D;font-size:13px;font-style:italic;line-height:16px;
}
/*navigation menu*/
nav {position:absolute;top:10px;right:0px;z-index:2;
}
nav ul, nav ul * {margin:0;padding:0;list-style:none;
}
nav ul li {float:left;position:relative;background:url(../images/menudiv.png) no-repeat scroll 0 0 transparent;padding:0 0 0 2px;
}
nav ul li a {color:#8A9CA0;display:block;font-size:18px;height:85px;line-height:120px;padding:0 0 0 8px;text-decoration:none;text-transform:uppercase;min-width:130px;
}

主要内容部分 (Main content section)

After our header area – we have main content area. This is pretty big section – in top we having search form and social icons, then we have slider (nivoSlider), and after slider – featured posts.

在标题区域之后–我们有主要内容区域。 这是相当大的部分–首先是搜索表单和社交图标,然后是滑块(nivoSlider),其次是滑块–特色文章。

<div id="main"><section id="social"><!-- Search form and social icons --><form action="#" onsubmit="return false;" method="get"><input type="text" onfocus="if (this.value =='Search..' ) this.value=''" onblur="if (this.value=='') this.value='Search..'" value="Search.." name="q"><input type="submit" value=""></form><ul><li><a href="#" title="facebook" rel="external nofollow"><img alt="" src="data:images/facebook.png"></a></li><li><a href="#" title="twitter" rel="external nofollow"><img alt="" src="data:images/twitter.png"></a></li><li><a href="#" title="linkedin" rel="external nofollow"><img alt="" src="data:images/linkedin.png"></a></li><li><a href="#" title="rss" rel="external nofollow"><img alt="" src="data:images/rss.png"></a></li></ul></section><section id="slider-wrapper"><!-- Promo slider --><div id="slider" class="nivoSlider"><img style="display: none;" src="data:images/promo1.jpg" alt="" title="#htmlcaption-1"><img style="display: none;" src="data:images/promo2.jpg" alt="" title="#htmlcaption-2"><img style="display: none;" src="data:images/promo3.jpg" alt="" title="#htmlcaption-3"></div><div id="htmlcaption-1" class="nivo-html-caption"><h5 class="p2">Your promo text 1</h5><p>Promo text description here</p></div><div id="htmlcaption-1" class="nivo-html-caption"><h5 class="p2">Your promo text 2</h5><p>Promo text description here</p></div><div id="htmlcaption-2" class="nivo-html-caption"><h5 class="p2">Your promo text 3</h5><p>Promo text description here</p></div><div id="htmlcaption-3" class="nivo-html-caption"><h5 class="p2">Your promo text 4</h5><p>Promo text description here</p></div></section><section id="content"><!-- Defining the content section --><ul><li><img src="data:images/post.jpg" alt=""><div class="desc"><p>Creating A CSS3 Animated Menu</p><a class="more" href="https://www.script-tutorials.com/creating-css3-animated-menu/">Continue</a></div></li><li><img src="data:images/post.jpg" alt=""><div class="desc"><p>Animated jQuery Progressbar Plugin</p><a class="more" href="https://www.script-tutorials.com/animated-jquery-progressbar/">Continue</a></div></li><li><img src="data:images/post.jpg" alt=""><div class="desc"><p>Fresh collection of Original Captchas</p><a class="more" href="https://www.script-tutorials.com/fresh-collection-of-original-captchas/">Continue</a></div></li></ul></section></div>
<div id="main"><section id="social"><!-- Search form and social icons --><form action="#" onsubmit="return false;" method="get"><input type="text" onfocus="if (this.value =='Search..' ) this.value=''" onblur="if (this.value=='') this.value='Search..'" value="Search.." name="q"><input type="submit" value=""></form><ul><li><a href="#" title="facebook" rel="external nofollow"><img alt="" src="data:images/facebook.png"></a></li><li><a href="#" title="twitter" rel="external nofollow"><img alt="" src="data:images/twitter.png"></a></li><li><a href="#" title="linkedin" rel="external nofollow"><img alt="" src="data:images/linkedin.png"></a></li><li><a href="#" title="rss" rel="external nofollow"><img alt="" src="data:images/rss.png"></a></li></ul></section><section id="slider-wrapper"><!-- Promo slider --><div id="slider" class="nivoSlider"><img style="display: none;" src="data:images/promo1.jpg" alt="" title="#htmlcaption-1"><img style="display: none;" src="data:images/promo2.jpg" alt="" title="#htmlcaption-2"><img style="display: none;" src="data:images/promo3.jpg" alt="" title="#htmlcaption-3"></div><div id="htmlcaption-1" class="nivo-html-caption"><h5 class="p2">Your promo text 1</h5><p>Promo text description here</p></div><div id="htmlcaption-1" class="nivo-html-caption"><h5 class="p2">Your promo text 2</h5><p>Promo text description here</p></div><div id="htmlcaption-2" class="nivo-html-caption"><h5 class="p2">Your promo text 3</h5><p>Promo text description here</p></div><div id="htmlcaption-3" class="nivo-html-caption"><h5 class="p2">Your promo text 4</h5><p>Promo text description here</p></div></section><section id="content"><!-- Defining the content section --><ul><li><img src="data:images/post.jpg" alt=""><div class="desc"><p>Creating A CSS3 Animated Menu</p><a class="more" href="https://www.script-tutorials.com/creating-css3-animated-menu/">Continue</a></div></li><li><img src="data:images/post.jpg" alt=""><div class="desc"><p>Animated jQuery Progressbar Plugin</p><a class="more" href="https://www.script-tutorials.com/animated-jquery-progressbar/">Continue</a></div></li><li><img src="data:images/post.jpg" alt=""><div class="desc"><p>Fresh collection of Original Captchas</p><a class="more" href="https://www.script-tutorials.com/fresh-collection-of-original-captchas/">Continue</a></div></li></ul></section></div>

主要内容CSS部分 (CSS for Main content section)


/* main section */
#main {background:url(../images/mainbg.png) repeat scroll left top transparent;border:1.5px dashed #CBC9C7;-moz-box-shadow:0 0 5px 7px #eeeeee;-webkit-box-shadow:0 0 5px 7px #eeeeee;box-shadow:0 0 5px 7px #eeeeee;-o-box-shadow:0 0 5px 7px #eeeeee;
}
#social {margin:10px auto;width:908px;overflow:hidden;
}
#social form {float:left;background:url(../images/search1.png) no-repeat scroll 0 0 transparent;height:28px;width:196px;
}
#social form input[type="text"] {background:none repeat scroll 0 0 transparent;border:medium none;color:#B5B2AA;float:left;font-size:12px;font-style:italic;height:18px;line-height:1.4em;margin:0;overflow:hidden;padding:4px 4px 4px 11px;width:155px;
}
#social form input[type="submit"] {background:url(../images/search2.png) no-repeat scroll 0 0 transparent;border:medium none;cursor:pointer;float:left;height:28px;margin:0;overflow:hidden;padding:0;width:26px;
}
#social ul {float:right;list-style:none outside none;margin:0;padding:0;
}
#social ul li {float:left;padding:0 0 0 3px;
}
#social ul li a:hover img {margin-top:1px;
}
#content {margin:10px auto;width:908px;overflow:hidden;
}
#content ul {list-style:none outside none;margin:0;padding:0;
}
#content ul li {color:#FFFFFF;float:left;height:288px;margin:0 0 0 22px;overflow:hidden;padding:0;position:relative;width:288px;
}
#content ul li:first-child {margin:0;
}
#content ul li img {float:left;
}
#content ul li div {background:url(../images/s_caption.png) repeat scroll 0 0 transparent;bottom:-50px;left:0;padding:14px 18px 13px 15px;position:absolute;width:255px;-moz-transition:bottom 0.25s linear;-ms-transition:bottom 0.25s linear;-o-transition:bottom 0.25s linear;-webkit-transition:bottom 0.25s linear;transition:bottom 0.25s linear;
}
#content ul li:hover div {bottom:0;
}
#content ul li div p {color:#FFFFFF;font-size:13px;line-height:16px;padding:0 0 2px;
}
#content ul li div a.more {color:#FFFFFF;float:right;font-size:15px;font-style:italic;line-height:1.2em;text-decoration:underline;
}

/* main section */
#main {background:url(../images/mainbg.png) repeat scroll left top transparent;border:1.5px dashed #CBC9C7;-moz-box-shadow:0 0 5px 7px #eeeeee;-webkit-box-shadow:0 0 5px 7px #eeeeee;box-shadow:0 0 5px 7px #eeeeee;-o-box-shadow:0 0 5px 7px #eeeeee;
}
#social {margin:10px auto;width:908px;overflow:hidden;
}
#social form {float:left;background:url(../images/search1.png) no-repeat scroll 0 0 transparent;height:28px;width:196px;
}
#social form input[type="text"] {background:none repeat scroll 0 0 transparent;border:medium none;color:#B5B2AA;float:left;font-size:12px;font-style:italic;height:18px;line-height:1.4em;margin:0;overflow:hidden;padding:4px 4px 4px 11px;width:155px;
}
#social form input[type="submit"] {background:url(../images/search2.png) no-repeat scroll 0 0 transparent;border:medium none;cursor:pointer;float:left;height:28px;margin:0;overflow:hidden;padding:0;width:26px;
}
#social ul {float:right;list-style:none outside none;margin:0;padding:0;
}
#social ul li {float:left;padding:0 0 0 3px;
}
#social ul li a:hover img {margin-top:1px;
}
#content {margin:10px auto;width:908px;overflow:hidden;
}
#content ul {list-style:none outside none;margin:0;padding:0;
}
#content ul li {color:#FFFFFF;float:left;height:288px;margin:0 0 0 22px;overflow:hidden;padding:0;position:relative;width:288px;
}
#content ul li:first-child {margin:0;
}
#content ul li img {float:left;
}
#content ul li div {background:url(../images/s_caption.png) repeat scroll 0 0 transparent;bottom:-50px;left:0;padding:14px 18px 13px 15px;position:absolute;width:255px;-moz-transition:bottom 0.25s linear;-ms-transition:bottom 0.25s linear;-o-transition:bottom 0.25s linear;-webkit-transition:bottom 0.25s linear;transition:bottom 0.25s linear;
}
#content ul li:hover div {bottom:0;
}
#content ul li div p {color:#FFFFFF;font-size:13px;line-height:16px;padding:0 0 2px;
}
#content ul li div a.more {color:#FFFFFF;float:right;font-size:15px;font-style:italic;line-height:1.2em;text-decoration:underline;
}

Customized styles of our slider (nivoSlider) I decided to move to external file

我决定将滑块的自定义样式(nivoSlider)移至外部文件

css / nivo-slider.css (css/nivo-slider.css)

This file always available in our package. After main section I decided to make another one section for content

此文件始终在我们的软件包中。 在主要部分之后,我决定将另一部分内容

<div id="submain"><section id="subcontent"><!-- Defining the content section #2 --><div id="left"><ul><li><div><h3>Post #1</h3><p>Post 1 description</p><a class="more" href="#">Continue</a></div></li><li><div><h3>Post #2</h3><p>Post 1 description</p><a class="more" href="#">Continue</a></div></li><li><div><h3>Post #3</h3><p>Post 1 description</p><a class="more" href="#">Continue</a></div></li></ul></div><div id="right"><ul><li><div><h3>Attractive Presentation with HTML5</h3><p>Today we will prepare something new – presentation. And we will using all interesting what can give us HTML5. Presentation itself will contain 5 easy slides. We will able to use navigation arrow keys for sliding, spacebar, display notes, sidebar with some custom content. Here are new html5 tags which we going to use: nav, menu, section, aside, header and hgroup. Sure, that now is time to check our demo.</p><a class="more" href="https://www.script-tutorials.com/creating-an-attractive-presentation-with-html5/">Continue</a></div></li><li><div><h3>Creating Advance Level Login system with Logic captcha</h3><p>Long ago, I talked about a simple easy login system. And today, I decided to improve the system. The new version will use the methods SHA1 + MD5 (with salt) to encode passwords. We also do not use cookies to store information, and will use the sessions. And, in this version I will implement an interesting logic captcha (where we will need to choose the correct answer in order to prove that we are human, not machine).</p><a class="more" href="https://www.script-tutorials.com/creating-advance-level-login-system-with-logic-captcha/">Continue</a></div></li></ul></div><div class="clear"></div></section></div>
<div id="submain"><section id="subcontent"><!-- Defining the content section #2 --><div id="left"><ul><li><div><h3>Post #1</h3><p>Post 1 description</p><a class="more" href="#">Continue</a></div></li><li><div><h3>Post #2</h3><p>Post 1 description</p><a class="more" href="#">Continue</a></div></li><li><div><h3>Post #3</h3><p>Post 1 description</p><a class="more" href="#">Continue</a></div></li></ul></div><div id="right"><ul><li><div><h3>Attractive Presentation with HTML5</h3><p>Today we will prepare something new – presentation. And we will using all interesting what can give us HTML5. Presentation itself will contain 5 easy slides. We will able to use navigation arrow keys for sliding, spacebar, display notes, sidebar with some custom content. Here are new html5 tags which we going to use: nav, menu, section, aside, header and hgroup. Sure, that now is time to check our demo.</p><a class="more" href="https://www.script-tutorials.com/creating-an-attractive-presentation-with-html5/">Continue</a></div></li><li><div><h3>Creating Advance Level Login system with Logic captcha</h3><p>Long ago, I talked about a simple easy login system. And today, I decided to improve the system. The new version will use the methods SHA1 + MD5 (with salt) to encode passwords. We also do not use cookies to store information, and will use the sessions. And, in this version I will implement an interesting logic captcha (where we will need to choose the correct answer in order to prove that we are human, not machine).</p><a class="more" href="https://www.script-tutorials.com/creating-advance-level-login-system-with-logic-captcha/">Continue</a></div></li></ul></div><div class="clear"></div></section></div>

Here you can keep all another your posts (or another necessary content) of your website. Here are related CSS styles:

您可以在此处保留网站上的所有其他帖子(或其他必要的内容)。 以下是相关CSS样式:


/* submain section */
#submain {background-color:#dbddda;margin-top:20px;padding:10px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;
}
#subcontent #left {float:left;width:30%;
}
#subcontent #right {float:left;margin-left:1%;width:69%;
}
#subcontent ul {list-style:none outside none;margin:0;padding:0;
}
#subcontent ul li {background-color:#FFFFFF;color:#737373;font-size:12px;line-height:18px;padding:7px;margin-bottom:10px;overflow:hidden;
}
#subcontent ul li:hover {color:#434343;
}
#subcontent ul li div {border:1px dashed #CBC9C7;padding:7px;overflow:hidden;
}
#subcontent ul li:hover div {border-color:#434343;
}
#subcontent ul li h3 {font-size:24px;font-weight:normal;line-height:1.2em;margin:0;padding:0 0 3px;text-transform:uppercase;
}
#subcontent ul li p {padding:0 0 13px;
}
#subcontent ul li a.more {color:#829597;float:right;font-size:12px;line-height:16px;padding:0 18px 0 0;text-decoration:none;text-transform:uppercase;
}
#subcontent ul li:hover a.more {color:#434343;-moz-transition:color 0.5s linear;-ms-transition:color 0.5s linear;-o-transition:color 0.5s linear;-webkit-transition:color 0.5s linear;transition:color 0.5s linear;
}

/* submain section */
#submain {background-color:#dbddda;margin-top:20px;padding:10px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;
}
#subcontent #left {float:left;width:30%;
}
#subcontent #right {float:left;margin-left:1%;width:69%;
}
#subcontent ul {list-style:none outside none;margin:0;padding:0;
}
#subcontent ul li {background-color:#FFFFFF;color:#737373;font-size:12px;line-height:18px;padding:7px;margin-bottom:10px;overflow:hidden;
}
#subcontent ul li:hover {color:#434343;
}
#subcontent ul li div {border:1px dashed #CBC9C7;padding:7px;overflow:hidden;
}
#subcontent ul li:hover div {border-color:#434343;
}
#subcontent ul li h3 {font-size:24px;font-weight:normal;line-height:1.2em;margin:0;padding:0 0 3px;text-transform:uppercase;
}
#subcontent ul li p {padding:0 0 13px;
}
#subcontent ul li a.more {color:#829597;float:right;font-size:12px;line-height:16px;padding:0 18px 0 0;text-decoration:none;text-transform:uppercase;
}
#subcontent ul li:hover a.more {color:#434343;-moz-transition:color 0.5s linear;-ms-transition:color 0.5s linear;-o-transition:color 0.5s linear;-webkit-transition:color 0.5s linear;transition:color 0.5s linear;
}

页脚部分 (Footer section)

Finally, here are our footer area

最后,这是我们的页脚区域

<footer><!-- Defining the footer section of the page -->Art template © 2011 <a class="link" href="https://www.script-tutorials.com/">Privacy Policy</a><br /><a class="link" href="https://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/">Template by Script Tutorials</a></footer>
<footer><!-- Defining the footer section of the page -->Art template © 2011 <a class="link" href="https://www.script-tutorials.com/">Privacy Policy</a><br /><a class="link" href="https://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/">Template by Script Tutorials</a></footer>

页脚部分CSS (CSS for footer section)


/* footer section */
footer{padding:25px 0;text-align:center;color:#979590;font-size:12px;
}
footer a{text-decoration:none;color:#979590;
}

/* footer section */
footer{padding:25px 0;text-align:center;color:#979590;font-size:12px;
}
footer a{text-decoration:none;color:#979590;
}

JS为我们的模板 (JS for our template)

Here are all necessary JS scripts:

这是所有必需的JS脚本:

js / html5.js,js / jquery.js和js / jquery.nivo.slider.pack.js (js/html5.js, js/jquery.js and js/jquery.nivo.slider.pack.js)

All these libraries already available in package

所有这些库已在软件包中提供

js / main.js (js/main.js)


$(window).load(function() {$('#slider').nivoSlider({effect:'random',slices:15,boxCols:8,boxRows:8,animSpeed:500,pauseTime:4000,directionNav:false,directionNavHide:false,controlNav:false,captionOpacity:1});
});

$(window).load(function() {$('#slider').nivoSlider({effect:'random',slices:15,boxCols:8,boxRows:8,animSpeed:500,pauseTime:4000,directionNav:false,directionNavHide:false,controlNav:false,captionOpacity:1});
});

nivoSlider have very easy initialization – so I hope that all easy here too.

nivoSlider的初始化非常简单–因此,我希望这里也很容易。

现场演示

结论 (Conclusion)

Congrats, our new template ‘Art theme’ is complete! You can use this as is, but please leave the back link to us intact. Don`t forget to say thanks :) Good luck!

恭喜,我们新的模板“艺术主题”已完成! 您可以按原样使用它,但请保留与我们的反向链接。 不要忘了说谢谢:)祝你好运!

翻译自: https://www.script-tutorials.com/creating-new-html5css3-single-page-layout-art-theme/

css html5布局方式

css html5布局方式_创建新HTML5 / CSS3单页布局–艺术主题相关推荐

  1. 新HTML5&CSS3单页布局–时尚

    New HTML5&CSS3 single page layout – Fashion Our today's template is very light, clean and friend ...

  2. html5如何新建定义站点,HTML5技术教程:创建新作品_HTML5教程_创建作品_添加元素_课课家...

    我们所熟知的HTM5软件是一款非常强大功能的软件,据我了解HTM5软件的特色也是非常有优势的.我们先来介绍一下它的优势: HTML5可以提供: ①:提高可用性和改进用户的友好体验; ②:有几个新的标签 ...

  3. html5 移动端单页面布局,移动端单页布局-如何更好的自适应各尺寸屏幕

    #### 移动端单屏布局 > 本篇不属于汇总类的文章,而是把自认为最优的解决方案来进行一些说明. #### 为什么会有单屏布局 作为一个前端开发者,我是实在没有理解单屏布局的优势在哪里,尤其是要 ...

  4. 企业门户纯静态单页模板_我的门户–您社区的单页布局

    企业门户纯静态单页模板 My portal – single page layout for your community. Today I have prepared new great templ ...

  5. 自定义音频播放器_创建自定义HTML5音频播放器

    自定义音频播放器 在本教程中,我将向您介绍HTML5音频,并向您展示如何创建自己的播放器. 如果您想走捷径,请查看Envato市场上可用的现成的HTML5音频播放器 . 它使您可以从各种来源创建播放列 ...

  6. css布局方式_网页布局都有哪种?一般都用什么布局?

    随着Web技术不断的革新,CSS近几年也变得多年前要更强大.在Web开发中,CSS是不可或缺的一部分,对于很多Web开发者来说,有很多CSS属性不知道,或者说他们知道,但忘记在最恰当的时候使用最适合的 ...

  7. css布局方式_收藏!40 个 CSS 布局技巧

    简介:CSS是Web开发中不可或缺的一部分,随着Web技术的不断革新,CSS也变得更加强大.CSS的众多属性你知道了多少?具体开发中该使用什么属性才最适合恰当?如今的一些CSS属性可以让我们节约更多的 ...

  8. css布局方式_手把手教你CSS Flex布局「真香」

    作者:EcbJS 转发链接:https://blog.csdn.net/EcbJS/article/details/106466757 前言   之前做项目,关于布局方面没怎么深入研究过,好多页面都是 ...

  9. JAVA共有几种窗体布局方式_在Java GUI程序开发中常见的三种布局管理器是什么

    答:FlowLayout 流式布局,从左到右,如果到边界就换行再从左到右. BorderLayout 边界布局(默认布局方式),按东西南北中五个方向来布局,默认是中.后设置在同样位置的控件会覆盖之前的 ...

  10. vue动态设置文字布局方式_十大惊人的文字动画特效

    本文阿宝哥将给大家介绍十个 「"惊人"」 的文字动画效果,希望阿宝哥精心录制的十个 Gif 动画能让大家感到 「"惊艳"」,当然更希望这些特效能给大家实现文字动 ...

最新文章

  1. python range()内建函数
  2. JAVA——Okhttp封装工具类
  3. 电脑 你离我有多远!
  4. c语言猜四位数游戏猜10次,C语言猜数字游戏--随机生成4个不相同的数字从小到大排序,用户开始游戏,如果用户猜对数字和数字对应的位置,界面回馈A,如果数字正确位置不正确,则回馈B...
  5. ES6学习笔记第一章
  6. 知乎人均985?Python爬50W数据,BI做出可视化后,我有了答案
  7. 虚拟机VMware的Ubuntu下安装tensorflow详解
  8. java线程学习笔记
  9. Delphi Sysem.JSON 链式写法(转全能中间件)
  10. 日常排版--word中的一些小技巧(交叉引用)
  11. 合工大计算机系汪教授,合肥工业大学计算机与信息学院导师介绍:洪日昌
  12. 2022年安全员-A证操作证考试题模拟考试平台操作
  13. 最专业逻辑图和最专业项目文档制作实战讲解
  14. 计算机与3d打印导板,计算机导航系统、3D打印截骨导板与传统器械对全膝关节置换术手术时间和下肢力线恢复的影响...
  15. 三数之和java实现ArrayList-leetcode算法编程-探索字节跳动面试
  16. 界面原型设计——在线教育app
  17. u9搜索引擎推送破解版
  18. rewrite break
  19. Erlang和Elixir简介
  20. 【《Real-Time Rendering 3rd》 提炼总结】(九) 第十章 · 游戏开发中基于图像的渲染技术总结

热门文章

  1. mysql远程备份_mysql实现自动远程备份一办法
  2. Java Web调用Matlab实现在线绘图
  3. IE 11 无法安全地连接到此页面
  4. 漫谈历法、闰年与闰月
  5. Kylin启动报错 ERROR: Check hive‘s usability failed, please check the status of your cluster
  6. 网络安全-使用PGP实现电子邮件安全
  7. 算法提高 盾神与条状项链
  8. 河北农业大学能不能学计算机,河北农业大学(专业学位)计算机技术考研难吗
  9. 多视图多行为对比学习推荐系统
  10. 不能显示隐藏文件或文件夹的完整解决方案