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

css html5布局方式

Art HTML5&CSS3 single page layout
Art HTML5&CSS3 single page layout

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)

final template result

final template 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)

header area

header area

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="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="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),其次是滑块–特色文章。

Main content area

Main content area
<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="images/facebook.png"></a></li><li><a href="#" title="twitter" rel="external nofollow"><img alt="" src="images/twitter.png"></a></li><li><a href="#" title="linkedin" rel="external nofollow"><img alt="" src="images/linkedin.png"></a></li><li><a href="#" title="rss" rel="external nofollow"><img alt="" src="images/rss.png"></a></li></ul></section><section id="slider-wrapper"><!-- Promo slider --><div id="slider" class="nivoSlider"><img style="display: none;" src="images/promo1.jpg" alt="" title="#htmlcaption-1"><img style="display: none;" src="images/promo2.jpg" alt="" title="#htmlcaption-2"><img style="display: none;" src="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="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="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="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="images/facebook.png"></a></li><li><a href="#" title="twitter" rel="external nofollow"><img alt="" src="images/twitter.png"></a></li><li><a href="#" title="linkedin" rel="external nofollow"><img alt="" src="images/linkedin.png"></a></li><li><a href="#" title="rss" rel="external nofollow"><img alt="" src="images/rss.png"></a></li></ul></section><section id="slider-wrapper"><!-- Promo slider --><div id="slider" class="nivoSlider"><img style="display: none;" src="images/promo1.jpg" alt="" title="#htmlcaption-1"><img style="display: none;" src="images/promo2.jpg" alt="" title="#htmlcaption-2"><img style="display: none;" src="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="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="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="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

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

second content section

second content section
<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 area

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布局方式

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://xiahunao.cn/news/1620371.html

如若内容造成侵权/违法违规/事实不符,请联系瞎胡闹网进行投诉反馈,一经查实,立即删除!

相关文章

android popWindow组件微信式实现(较完整版)

效果 PopWinLayout package com.coral3.common_module.components;import android.content.Context; import android.os.Handler; import android.os.Message; import android.util.AttributeSet; import android.view.Gravity; import android.view.LayoutInflater; import a…

前端学习第四周

目录 一.position定位1.1定位的用法&#xff08;写法&#xff09;1.2relative相对定位1.2.1特性1.2.2实际案例 1.3absolute绝对定位1.3.1特性1.3.2实际案例 1.4fixed&#xff1a;固定定位1.4.1特性1.4.2实际案例 1.5sticky粘性定位1.5.1特性1.5.2实际案例 1.6z-index定位层级1.…

Web前端4

一、relative相对定位 position定位 1.position特性 css position属性用于指定一个元素在文档中的定位方式。top、right、bottom、left属性则决定了该元素的最终位置。 2.position取值 static(默认) relative absolute fixed sticky relative相对定位 1.如果没有定位偏移量&am…

Flutter 城市/通讯录列表字母索引联动效果实现

前言 在像通讯录&#xff0c;联系人列表&#xff0c;城市选择列表等数据量比较多的长列表页面中&#xff0c;我们经常会留意到产品设计会在页面的右侧区域提供一个竖向的字母索引列表&#xff0c;供用户点击选择快速定位到长列表中的指定索引位置&#xff0c;以便于用户快速定位…

快给你的Vue项目添加一个编辑图片组件吧

一款功能极其强大的图片编辑插件 tui.image-editor 快速体验 首选在你的前端项目中安装&#xff1a; npm i tui-image-editor // or yarn add tui-image-editor现在你就去新建一个.vue文件&#xff0c;复制进去下面这段代码&#xff1a; <template><div id"t…

QTableWidget表格控件的用法(非常详细)

QTableWidget表格控件的用法&#xff08;非常详细&#xff09; [1] QTableWidget表格控件的用法&#xff08;非常详细&#xff09;[2] QTableWidget详解1.常用API设置自动调整行高和列宽设置表格内容是否可编辑设置行表头、列表头是否显示 2.添加子项3.右键弹出菜单4.设置风格5…

如果你觉得自己对 CSS 变量不熟悉,那么可以补充这个!

作者&#xff1a; Ahmad Shadeed 译者&#xff1a;前端小智 来源&#xff1a;ishadeed 点赞再看&#xff0c;养成习惯 本文 GitHub https://github.com/qq449245884/xiaozhi 上已经收录&#xff0c;更多往期高赞文章的分类&#xff0c;也整理了很多我的文档&#xff0c;和教程资…

VMware中配置NAT方式上网 by.zyw

VMware中配置NAT方式上网 by.zyw 看了本站上众大神的VMware配置NAT方式上网的文章后&#xff0c;发现在本人电脑上并不能完全设置成功&#xff0c;在自己摸索后&#xff0c;虚拟机配置NAT方式上网成功&#xff0c;下列个人实际操作经验&#xff1a; NAT模式介绍&#xff1a; …

在线文档 - Google 文档的数据协议设计

在线文档 - Google 文档的数据协议设计 Google 文档作为 G Suite 重要的产品套件之一&#xff0c;作为优秀的在线协作文档而经常被开发者所讨论&#xff0c;在 Google 文档背后&#xff0c;有着一整套优秀的相关架构设计支撑&#xff0c;数据协议设计就是其中之一&#xff0c;非…

数仓--------简单了解

作者前言 &#x1f382; ✨✨✨✨✨✨&#x1f367;&#x1f367;&#x1f367;&#x1f367;&#x1f367;&#x1f367;&#x1f367;&#x1f382; ​&#x1f382; 作者介绍&#xff1a; &#x1f382;&#x1f382; &#x1f382; &#x1f389;&#x1f389;&#x1f389…

分类预测 | MATLAB实现SSA-CNN-SVM基于麻雀算法优化卷积支持向量机分类预测

分类预测 | MATLAB实现SSA-CNN-SVM基于麻雀算法优化卷积支持向量机分类预测 目录 分类预测 | MATLAB实现SSA-CNN-SVM基于麻雀算法优化卷积支持向量机分类预测预测效果基本介绍程序设计参考资料 预测效果 基本介绍 MATLAB实现SSA-CNN-SVM基于麻雀算法优化卷积支持向量机分类预测…

Prima Cartoonizer v3.1.4一键生成专属动漫头像,

不少小伙伴都想获取一个自己的专属动漫头像&#xff0c;但是要请画师帮忙画一张又不便宜。 今天小编就带来一款可以将图像一键转动漫效果的软件&#xff0c;内含了近40种不同的动漫模板&#xff0c;还有各种卡通眼睛、眼镜及漫画常用的贴图工具 满足你的各种漫画头像制作需求…

高中信息技术教资考试模拟卷(22下)

2022 年下半年全国教师资格考试模考卷一 &#xff08;高中信息技术&#xff09; 一、单项选择题&#xff08;本大题共 15 小题&#xff0c;每小题 3 分&#xff0c;共 45 分&#xff09; 1.2006 年 10 月 25 日&#xff0c;深圳警方成功解救出一名被网络骗子孙某…

RHCE——八、DNS域名解析服务器

RHCE 一、概述1、产生原因2、作用3、连接方式4、因特网的域名结构4.1 拓扑4.2 分类4.3 域名服务器类型划分 二、DNS域名解析过程1、分类2、解析图&#xff1a;2.1 图&#xff1a;2.2 过程分析 三、搭建DNS域名解析服务器1、概述2、安装软件3、/bind服务中三个关键文件4、配置文…

string类中的一些问题

前言&#xff1a;C中的string类是继承C语言的字符数组的字符串来实现的&#xff0c;其中包含许多C的字符串的相关知识的同时&#xff0c;也蕴含很多的类与对象的相关知识&#xff0c;在面试中&#xff0c;面试官总喜欢让学生自己来模拟实现string类&#xff0c;最主要是实现str…

select语句详细解释

SELECT 语句的基本格式为&#xff1a; SELECT 要查询的列名 FROM 表名字 WHERE 限制条件; SELECT 语句常常会有 WHERE 限制条件&#xff0c;用于达到更加精确的查询。WHERE 限制条件可以有数学符号 ( < > > <) select name,age from employee where salary>3500…

go中select语句

在golang语言中&#xff0c;select语句 就是用来监听和channel有关的IO操作&#xff0c;当IO操作发生时&#xff0c;触发相应的case动作。有了 select语句&#xff0c;可以实现 main主线程 与 goroutine线程 之间的互动。 select {case <-ch1 : // 检测有没有数据可读//…

SQL SELECT语句

SQL语句是由简单地英语单词构成的。这些单词称为关键字&#xff0c;每个SQL语句都是由一个或多个关键字构成的。最经常使用的SQL语句大概就是SELECT语句了&#xff0c;它的用途是从一个或多个表中检索信息 SELECT 语句用于从数据中选取数据。 结果被存储在一个结果表中&#…

权限提升-手工-系统权限提升

权限提升基础信息 1、具体有哪些权限需要我们了解掌握的&#xff1f; 后台权限&#xff0c;网站权限&#xff0c;数据库权限&#xff0c;接口权限&#xff0c;系统权限&#xff0c;域控权限等 2、以上常见权限获取方法简要归类说明&#xff1f; 后台权限&#xff1a;SQL注入,数…

5 群起集群

1.在启动集群之前&#xff0c;先配置workers,有几个节点就配置几个 [atguiguhadoop102 hadoop]$ vim /opt/module/hadoop-3.1.3/etc/hadoop/workers在该文件中增加如下内容&#xff1a; hadoop102 hadoop103 hadoop104 注意&#xff1a;该文件中添加的内容结尾不允许有空格&a…