1. 开始
  2. HTML 结构和布局
  3. CSS 文件和皮肤颜色
  4. JavaScript 文件
  5. 主页和 Flex 滑块
  6. 旋转木马
  7. 文字/推荐旋转器
  8. 可排序的投资组合
  9. 石工
  10. 联系表
  11. 标签、协议、按钮、框、切换
  12. 图标
  13. 资料来源及致谢

萨利克。

响应式 HTML 模板


HTML 结构


此主题支持 2 种模板布局:全(宽)和盒装。只需使用最适合您需求的主题即可。

网格由两个关键元素构成:行和列。行创建最大宽度并包含列;列创建实际结构。为了使布局正常工作,请始终将页面内容放在行和列内。

您需要知道的是,列的宽度不是固定的。它们可以根据屏幕的分辨率或窗口的大小而变化。

每个列块的大小取决于它占据了 12 列中的多少列。主内容 + 侧边栏布局示例:

1
2
3
4
5
6
7
8
<div class="row">
    <div class="c8"><font></font>
        Main content here<font></font>
    </div>
    <div class="c4"><font></font>
        Sidebar here<font></font>
    </div>
</div>

c8 表示八列,c4 表示四列,以此类推。选择任意多的组合,只要总数为 12。

我们的文档“columns.html”展示了一些列变化的示例。

提示:若要在行顶部或底部添加一些空间,请使用类:“space-top”或“space-bot”。您会注意到它在我们的主题中也非常常用。

 

CSS 文件和结构


我在这个主题中使用了三个主要 CSS 文件。 

  1. style.css- 主要 css 文件(包括重置样式);
  2. skinblue.css—— 此主题的皮肤。
  3. 为了改变皮肤颜色,请将所有 html 文档(顶部)中的skinblue.css替换为您选择的皮肤颜色(您可以从 CSS 文件夹中获取它们的名称)。

    简单举个例子,假设我选择绿色皮肤。然后我将替换:

    1
    <link rel="stylesheet" href="stylesheets/skinblue.css">
    1
    <link rel="stylesheet" href="stylesheets/skingreen.css">

  4. responsive.css  - 响应式布局的样式表。

可选样式表:

slider.css - 用于显示滑块的每个页面
icons.css - 用于字体真棒图标
prettyPhoto.css - 用于画廊

JavaScript


 

该主题使用了多个 Javascript 文件,在我们的文档中根据它们所起的作用分别处理。 

jquery.js (1.9)
common.js
contact.js
jquery.carouFredSel-6.0.5-packed.js
jquery.cslider.js
jquery.cycle.js
jquery.easing.1.3.js
jquery.flexslider-min.js
jquery.prettyPhoto.js
jquery.tweet.js
jquery.isotope.min.js
modernizr-latest.js
mosaic.1.0.1.min.js
timeline.js

主页滑块


使用样式表:
slider.css

使用 Javascript 文件:
jquery.cslider.js

滑块包含多个幻灯片,每个幻灯片都有一个 h2 元素、一个段落、一个链接和一个带有图像的分区(默认大小:238x420):

1
2
3
4
5
6
7
8
9
10
11
12
十三
14
15
16
17
18
19
20
21
22
23
<div id="da-slider" class="da-slider"><font></font>
 <font></font>
    <div class="da-slide">
        <h2>Some headline</h2>
        <p>Some description</p>
        <a href="#" class="da-link" style="width:202px;">Read more</a>
        <div class="da-img">
            <img src="images/1.png" alt="image01">
        </div>
    </div><font></font>
     <font></font>
    <div class="da-slide">
        <!-- ... -->
    </div><font></font>
     <font></font>
    <!-- ... --><font></font>
     <font></font>
    <nav class="da-arrows">
        <span class="da-arrows-prev"></span>
        <span class="da-arrows-next"></span>
    </nav><font></font>
     <font></font>
</div>

Flex Slider

An example of flexslider can be found in singleproject.html.

Uses stylesheet:
slider.css

Uses Javascript files:
jquery.flexslider-min.js

1
2
3
4
5
6
7
8
9
10
11
12
十三
<div class="flexslider">
<ul class="slides">
    <li>
    <img src="images/yourimage.jpg" alt="">
    </li>
    <li>
    <img src="images/yourimage.jpg" alt="">
    </li>
    <li>
    <img src="images/yourimage.jpg" alt="">
    </li>
</ul>
</div>

Text / Testimonial Rotator


In our theme, the text rotator is used in testimonials, but feel free to use it in any other context.

Javascript: jquery.cycle.js (make sure it is called if you are using it outside these pages).

To add a text rotator, follow the structure:

1
2
3
4
5
6
7
8
9
10
11
12
十三
14
15
<div id="testimonials">
<!-- text 1-->
<div>
    <div class="testimonial"><font></font>
        Text here<font></font>
    </div> 
</div>
<!-- text 2-->
<div>
    <div class="testimonial"><font></font>
        Text here<font></font>
    </div> 
</div>
<!-- text 3 etc-->
</div>

Filterable Portfolio


Javascripts:

jquery.isotope.min.js for filterable portofolio

We will take as example the 2 COLUMNS PORTOFOLIO STRUCTURE: (see explanation after code)

1
2
3
4
5
6
7
8
9
10
11
12
十三
14
15
16
17
18
19
20
21
22
23
24
二十五
二十六
二十七
二十八
二十九
三十
31
三十二
33
三十四
三十五
三十六
三十七
三十八
三十九
40
41
四十二
43
四十四
四十五
四十六
四十七
四十八
49
50
<!-- begin categories -->
<div class="row space-bot">
    <div class="c12">
        <h1 class="maintitle space-top">
        <span>EXPLORE OUR WORK</span>
        </h1>
        <div id="nav">
            <ul class="option-set">
                <li><a href="" data-filter="*" class="selected">Show All</a></li>
                <li><a href="" data-filter=".cat1">Business</a></li>
                <li><a href="" data-filter=".cat2">Light</a></li>
                <li><a href="" data-filter=".cat3">Modern</a></li>
            </ul>
        </div>
    </div>
</div>
<!-- end categories --><font></font>
<font></font>
<font></font>
<div class="row space-top">
    <div id="content"><font></font>
    <font></font>
        <!-- box 1 -->
        <div class="boxtwocolumns cat2">
            <div class="boxcontainer boxcontainer2col">
                <div class="mosaic-block cover mosaicover2col">
                    <div class="mosaic-overlay">
                        <img src="images/yourimage.jpg" alt="">
                    </div>
                    <a href="singleproject.html" target="_blank" class="mosaic-backdrop blue">
                    <div class="details">
                        <b><br><br>Innovative Art & Dalya brings you Quality Furniture</b>
                        <p><font></font>
                             via Salique<font></font>
                        </p>
                        <i class="icon-link mosaiclink"></i>
                    </div>
                    </a>
                </div>
                <h1><a href="singleproject.html">Dalya Cream</a></h1>
                <p><font></font>
                     porta acean pulvinar<font></font>
                </p>
            </div>
        </div><font></font>
        <font></font>
        <!-- box 2 -->             
        <!-- box 3 etc -->
    </div>
</div>

STEP A.
Notice "cat1", "cat2", "cat3" from lines 10,11,12. These are categories. Replace them with your own and add some more if needed.

STEP B.
Assign category to each item, notice line 23, "cat2". In our example, "cat2" is the category assigned.

STEP C.
Line 27, replace images/yourimage.jpg with your own image path.

STEP D.
Line 29 & 39, replace singleproject.html with the path (link) to your detailed project.

STEP E.
Line 29, notice mosaic-backdrop blue. Replace "blue" with the background color you want on hover. Available colors: orange, green, orangered, purple, black, gold, red, teal, tealdark, aqua, brown, lila, yellow.

The same steps apply to 3 columns portfolio, 4 columns portfolio and 5 columns portfolio as well (except the lines are different because of a different html structure)

Pay attention to image and thumbs path locations, in my themes I have used placeholders.

Masonry


Item elements are arranged intelligently within a vertical grid. For each item element, the script calculates the next best fit for the item within the grid.

You can find this style in Gallery (for images example) and Tesimonials (for text examples).

Wrap the boxes within
1
2
3
<div id="content">
<!-- items here -->
</div>

For a four-column alignment, an item will have this structure:

1
2
3
<div class="boxfourcolumns"><font></font>
Text here<font></font>
</div>

So, the final masonry layout will be:

1
2
3
4
5
6
7
8
9
10
11
12
十三
14
15
16
17
18
19
20
21
22
23
<div id="content"><font></font>
<font></font>
<div class="boxfourcolumns"><font></font>
Item 1 text <font></font>
</div><font></font>
<font></font>
<div class="boxfourcolumns"><font></font>
Item 2 text<font></font>
</div><font></font>
<font></font>
<div class="boxfourcolumns"><font></font>
Item 3 text<font></font>
</div><font></font>
<font></font>
<div class="boxfourcolumns"><font></font>
Item 4 text<font></font>
</div><font></font>
<font></font>
<div class="boxfourcolumns"><font></font>
Item 5 text etc<font></font>
</div><font></font>
<font></font>
</div>

What about three or five columns? Use "boxthreecolumns" or "boxfivecolumns" instead of "boxfourcolumns".

That's it, you have a masonry layout. Don't forget the scripts at the bottom of the document ( you can find them in testimonials.html or masonry portfolio files).

Contact Forms


The contact form appears in contact.html.. Just find the following line in contact.php file (23 if you're using Notepad++ editor) and replace the existing e-mail address with your own.
1
$to = 'wowthemesnet@gmail.com';

Tabs Example


1
2
3
4
5
6
7
8
9
10
11
12
十三
<ul id="tabs">
<li><a href="#tab1">Highest Quality</a></li>
<li><a href="#tab2">Desk Support </a></li>
</ul><font></font>
<font></font>
<div class="container" id="tab1">
<p>Donec eu libero sit amet quam egestas semper.</p>
</div><font></font>
<font></font>
<div class="container" id="tab2">
<p>Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra.</p>
</div><font></font>
<font></font>

Accordion Example

1
2
3
4
5
6
7
8
9
10
    <div class="accordian">
    <ul>
        <li>Quisque at erat vitae</li>
        <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec auctor, lorem et consectetur ultricies, nulla lacus iaculis odio, in laoreet lacus nisi vitae dolor. In commodo aliquet orci. </li>
        <li>Sed euismod massa</li>
        <li>Mauris bibendum justo sit amet lectus laoreet faucibus. Aliquam cursus, diam sed lacinia ultrices, urna ipsum auctor lacus, id vulputate ante ligula aliquam odio. Fusce feugiat risus at nisl.</li>
        <li>Proin et orci sit amet</li>
        <li>Sed vitae magna. Aliquam faucibus, felis ullamcorper feugiat semper, tortor leo tincidunt nibh, a faucibus lorem magna a nisi. Pellentesque habitant morbi tristique senectus et netus et.</li>
    </ul>
</div>

Toggle Example

1
2
3
4
5
6
7
<dl class="faqs">              
<dt>Lorem ipsum dolor sit amet, consectetuer</dt>
<dd>Lorem ipsum dolor sit amet. Integer tincidunt.</dd><font></font>
<font></font>
<dt>Brem ipsum dolor sit amet, consectetuer</dt>
<dd>Borem ipsum dolor sit amet. Integer tincidunt.</dd>
</dl>

Buttons Example

1
2
3
4
5
6
7
8
9
10
11
12
十三
14
15
16
17
18
19
20
<p>
<button type="submit" class="small">Small</button>
<button type="submit">Default</button>
<button type="submit" class="large">Large</button>
</p>
<p>
<button type="submit">Button</button>
<button type="submit" class="skyblue">Button</button>
<button type="submit" class="blue">Button</button>
</p>
<p>
<button type="submit" class="green">Button</button>
<button type="submit" class="yellow">Button</button>
<button type="submit" class="orange">Button</button>
</p>
<p>
<button type="submit" class="red">Button</button>
<button type="submit" class="magenta">Button</button>
<button type="submit" class="black">Button</button>
</p>

Boxes

1
2
3
4
5
6
7
8
9
10
11
12
十三
14
15
16
17
18
19
20
21
22
23
24
二十五
二十六
二十七
二十八
二十九
三十
31
三十二
33
三十四
三十五
三十六
三十七
三十八
三十九
40
41
四十二
43
四十四
四十五
四十六
<!-- box ex 1 -->      
<div class="wrapaction"><font></font>
Porem ipsum dolor sit amet, consectetuerorem ipsum dolor sit amet, consectetuer.<font></font>
</div><font></font>
<font></font>
<!-- boxes ex 2 --><font></font>
<font></font>
<div class="c4">
    <h2 class="title hometitlebg" style="background:#7bca32"><i class="icon-qrcode smallrightmargin"></i> Responsive Theme</h2>
    <div class="noshadowbox">
        <h5>DELIVERY</h5>
        <p><font></font>
             Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam hendrerit lacus mattis orci fermentum mollis iaculis purus lobortis. In et purus ut nunc elementum dapibus facilisis in quam.<font></font>
        </p>
        <p class="bottomlink">
            <a href="#" class="neutralbutton" style="background:#7bca32"><i class="icon-link"></i></a>
        </p>
    </div>
</div><font></font>
<font></font>
<div class="c4">
    <h2 class="title hometitlebg"><i class="icon-qrcode smallrightmargin"></i> Responsive Theme</h2>
    <div class="noshadowbox">
        <h5>DELIVERY</h5>
        <p><font></font>
             Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam hendrerit lacus mattis orci fermentum mollis iaculis purus lobortis. In et purus ut nunc elementum dapibus facilisis in quam.<font></font>
        </p>
        <p class="bottomlink">
            <a href="#" class="neutralbutton"><i class="icon-link"></i></a>
        </p>
    </div>
</div><font></font>
<font></font>
<div class="c4">
    <h2 class="title hometitlebg" style="background:#f65827"><i class="icon-qrcode smallrightmargin"></i> Responsive Theme</h2>
    <div class="noshadowbox">
        <h5>DELIVERY</h5>
        <p><font></font>
             Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam hendrerit lacus mattis orci fermentum mollis iaculis purus lobortis. In et purus ut nunc elementum dapibus facilisis in quam.<font></font>
        </p>
        <p class="bottomlink">
            <a href="#" class="neutralbutton" style="background:#f65827"><i class="icon-link"></i></a>
        </p>
    </div>
</div><font></font>
        <font></font>

Font Awesome Icons


This theme supports 249 icons thans to Font Awesome integrated in it. How to use? Just add
1
2
<i class="icon-camera-retro"></i>
and the icon will appear in your page. Replace "camera-retro" with the icon you wish to use. All icons showcase here: Font Awesome.

Sources and Credits


我使用了以下列出的图像、图标或其他文件。我不拥有任何版权。