响应式布局和Bootstrap

如何实现响应式布局?

  • CSS 3 Media Query(最简单)
  • 原生Javascript(成本高,不推荐使用)
  • 第三方开源框架(可以很好的支持浏览器响应式布局的设计)

Media常见属性:

device-width, device-height 屏幕宽高

width, height                           渲染窗口宽高

orientation                               设备方向

resolution                                 设备分辨率

内联样式写法





<style>
	@media screen and (min-width: 480px){
		body{background: blue;}
	}
</style>




外部样式写法

<link type="text/css" rel="stylesheet" href="link.css" media="only screen and (max-width:480px)" >

Bootstrap响应式框架

官网地址:http://getbootstrap.com/

头部引用的代码参考

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<!--[if lt IE 9]>
  <!--IE低版本兼容HTML5-->
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <!--IE低版本兼容CSS3-->
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

通常会在body标签中最后加入

<!--引入jQuery和Bootstrap的JS插件-->
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> 

 

WordPress模板集合

Alterna – Ultra Multi-Purpose WordPress Theme

Alterna is an retina-ready, fully responsive Multi-Purpose WordPress Theme.Alterna gives you an awesome premium theme to create your website for any type of website; business, corporate, portfolio, blog, products, magazine, shop etc…Alterna also Integrate WooCommerce, WPML, Facebook Page etc…

Alterna includes Drag & Drop Visual Composer Page Builder value 25$; 2 Premium WP Slider : Layer Slider (3D & 2D transitions Slider new features) value 15$ , Revolution Slider value $15 ; premium isotope value 25$; Amazing fancyBox lightbox value 89$ and has a lot of awesome features, check them out below!

Wordpress 主题 Alterna

预览地址:http://themeforest.net/item/alterna-ultra-multipurpose-wordpress-theme/3946450

下载地址:http://pan.baidu.com/s/1nt9h6Lr

Book Store Responsive WooCommerce Theme

Bookstore is a clean responsive WooCommerce powered WordPress store theme suitable for book stores, libraries, book shops, digital products, ebooks, software apps or can be used to create affiliate sites linking to store like Amazon and B&N. It is compatible with all modern mobile devices. Other then being an eCommerce, it also has portfolio included.

Wordpress主题 Book Store

预览地址:http://themeforest.net/item/book-store-responsive-woocommerce-theme/5243193

下载地址:http://pan.baidu.com/s/1gdEJ21P

Directory v2.0.1 + Childthemes, Plugins, Payments & Guides

Create, manage and monetize a local or global directory site using this most popular, responsive directory theme.

Wordpress主题Directory

预览地址:http://templatic.com/app-themes/directory-theme

下载地址:http://pan.baidu.com/s/1o6OEAhW

 GoodStore v1.5 – WooCommerce Responsive Theme

SEO optimized multipurpose online store responsive, flat, retina ready design with unlimited colors, skins and layouts Look Book slider & Catalog Mode WooCommerce plugin & all shortcodes included easy to manage and customizable, WPML ready improvements in layout manager – drag & drop page builder.

Wordpress主题Good Store

预览地址:http://themeforest.net/item/goodstore-woocommerce-responsive-theme/7314327

下载地址:http://pan.baidu.com/s/1qWAxwaK

Grovepixels Full Theme Pack – November 2014

Our collection features premium WordPress themes for bloggers, designers, startups, businesses and freelancers. Browse our wide selection of WordPress themes to find the right one for you.

Wordpress模板Grovepixels

预览地址:http://www.grovepixels.com/themes/

下载地址:http://pan.baidu.com/s/1qWDLlOo

Law Business WordPress Theme is an ideal solution for a private attorney website as well as for larger law office websites. It includes all the neccesary functionality to present legal services online. Custom Services post type lets you provide a gallery of services in an attractive and handy way, describing legal solutions your office offers. If there is a team of lawyers working for your office, Law Business theme provides a great way to showcase attorney personal profiles.

One of the greatest benefits of LawBusiness theme by cmsmasters is a fantastic simplicity of website management it offers. Custom visual composer provides an easy content formatting within drag-and-drop interface. A collection of great shortcodes allows you create diverse and attractive pages.

To make sure your law office gets more clients, Law Business theme has sophisticated SEO options for each of the pages and posts. You can add custom meta for each of them. Valid and optimized HTML5 and CSS3 code help to make sure your Law Offices site is well crawled and indexed by search engine to improve your search performance.

Wordpress主题Law Business

预览地址:http://themeforest.net/item/lawbusiness-attorney-lawyer-wordpress-theme/7581460

下载地址:http://pan.baidu.com/s/1hqzivuW

Office Responsive Business Theme

Office is the ultimate WordPress theme for any corporate business. Featuring a very professional design, 7 custom post types, drag and drop homepage modules, unlimited highlight color option, optional navigation icons, 3 menu regions, an optional responsive layout…Office has everything you’ll want for your business website.

Wordpress模板Office

预览地址:http://themeforest.net/item/office-responsive-business-theme/1718861

下载地址:http://pan.baidu.com/s/1eQoxe4E

Oxygen – WooCommerce WordPress Theme

Oxygen – is a WooCommerce theme, built exclusively for online shopping and offers great variety of options to customize the look and feel of the theme via theme options panel.

You can choose between 4 header types, change typography, toggle shop and blog settings and create unique page layouts with Visual Composer premium plugin, which comes free with this theme.

Slider revolution its also included as a free component for the theme and you can create great presentations for your shop.

Wordpress主题Oxygen

预览地址:http://themeforest.net/item/oxygen-woocommerce-wordpress-theme/7851484

下载地址:http://pan.baidu.com/s/1mgIDbBE

Trend – Photography WordPress Theme

Trend is excellent for portfolio, article, photography, creative, gallery sites. Powerful theme options, thousands of color combinations, easy use, fast build, amazing look! Trend comes with a category slider, and quick view more that allows you to navigate realy fast and have a look at your last photos.

Wordpress主题Trend

预览地址:http://themeforest.net/item/trend-photography-wordpress-theme/7116292

下载地址:http://pan.baidu.com/s/1o6LWLOe

Meganews v1.5 – Magazine Responsive WordPress Theme

WordPress Theme Meganews is a Responsive Magazine WordPress Theme with many features: easy to use Layout Builder (Visual Composer), on-click Theme Options, Resposnive design, unlimited layouts, unlimited colors, different post layouts, many useful shortcodes integrated into the Visual Composer and much more. The main feature is a strong Layout Builder (Visual Composer) which offers you to create wonderful, unique layouts with just clicks. Theme is also SEO friendly.

Wordpress主题模板Meganews

预览地址:http://themeforest.net/item/meganews-magazine-responsive-wordpress-theme/7216941

下载地址:http://pan.baidu.com/s/1jGmTbAQ

WordPress模板下载-Bloggy

Bloggy v.2是一款针对博主的Wordpress响应式主题,包含自定义的头部图片、文章格式以及多种页面模板来实现充分的客制化。

Wordpress模板下载-Bloggy

演示页面:http://www.anariel.com/bloggy/bloggy2/

下载地址:WordPress模板下载-Bloggy

Features:
WordPress Theme Customizer
Responsive Design
WPML compatibility-in case your business needs a multi-language site
Many Different page templates
Post Formats
Jetpack Widget Visibility – this awesome feature allows you to choose on which page your particular widget appears or dissapears
Theme is styled for “WooCommerce” plugin
Soliloquy slider plugin
Widgetize footer and widgetized right sidebar
2 Custom menus – menu and socials

Base Themezilla WordPress响应式主题

Base是一款Themezilla上的针对Wordpress主题,该主题采取响应式布局,是一个公文包(portfolio)式主题,适用于摄影、艺术、设计行业,也可供自由职业者和机构等展示作品时使用。

Base Themezilla WordPress响应式主题

演示页面:http://demo.themezilla.com/?theme=base

下载地址:Base Themezilla WordPress响应式主题

Accent colour control

Control the accent colour of your site without touching a single line of code. Truly effortless customization.

Full multimedia support

Use different media to display your work. Full support for images, audio and video (both self-hosted and embedded).

Fully responsive design

Serve an optimised version of the theme to your visitors on tablet and mobile devices. Optimised for iPad and iPhone.

Post format support

Spice up your blog with multimedia content. Support for images, galleries, video, audio, quotes, links and more.

Beautifully minimalistic

A clean, crisp, gimmick-free design focusing the user’s attention on your artwork. The way a portfolio should be.

Custom widgets

A selection of custom widgets baked in by default. Add Twitter, Flickr and Videos with just a few clicks.

Slash – 技术杂志类Blogger模板

Slash可自定义、功能丰富的blogger模板,适用于技术、杂志、娱乐等主题的博客。使用了Mega菜单让访客可在各分类中更轻松的找到相关文章,该模板采用了3栏式的自适应布局。

 Slash - 技术杂志类Blogger模板

演示地址:http://themeforest.net/item/slash-techmagazine-blogger-template/full_screen_preview/8109373

下载地址: Slash – 技术杂志类Blogger模板

Xenon – Bootstrap管理后台主题

Xenon是一款采用Twitter Bootstrap 3.2.0建立的一款轻量级自适应主题,包含多个UI组件,布局变体以及由128个HTML组成的主题皮肤。该主题制作者之前所发布的Neon主题被名列ThemeForest上最受欢迎的13款admin主题之一,Xenon较Neon编码更为简洁,组织更合理也更易于扩展。

Xenon - Bootstrap管理主题

演示地址:http://themes.laborator.co/#theme=xenon

下载地址:Xenon – Bootstrap管理后台主题

Joomla免费自适应模板-JSN Glamo

JSN Glamo是一个兼容Joomla 2.5和Joomla 3.x的自适应模板,适用于时尚零售行业,是对于RedShop的一个扩展。该主题具有极强的视觉冲击力,适合作为一个女性购物网站的模板,同时集成了社交图标以及友好的手机页面展示。

 

Joomla免费自适应模板-JSN Glamo

演示页面:http://themeforest.net/item/jsn-glamo-befits-fashion-retail-websites/full_screen_preview/6909468

下载地址:Joomla免费自适应模板-JSN Glamo

免费自适应Magento模板-Women Store

Women Store是一个针对化妆品、美容产品、时装、首饰及鞋等相关行业的Magneto自适应主题。 该主题设计时尚,包含6种不同颜色搭配的版本,使用了大量的轮播、包含多列的mega目录,产品大小可通过后台来进行控制,支持Ajax layer navigation、价格滑块等功能。

免费自适应Magento模板-Women Store

演示页面:http://themeforest.net/item/women-store-responsive-magento-theme/full_screen_preview/5009919

下载地址:免费自适应Magento模板-Women Store

本站提供的下载资源仅供学习交流之用。

THEME FEATURES

  • 6 skins available
  • Responsive design
  • Unlimited color
  • Mega Menu
  • Easy custom home page
  • Easy install with One click
  • Slide show banner with admin panel with many effect yo can choose
  • ajax layer navigation
  • ajax price slider
  • ajax add to cart
  • ajax toolbar, ajax sortby, ajax paging …
  • Onsale Products slider home page
  • Featured Products slider home page
  • New products slider
  • Related products slider
  • Upsell products slider
  • Easy custom products display in category
  • Header dropdown shopping cart
  • Multiple Languages
  • Back to top button
  • Scroller Thumbnail images in product page
  • Cloud zoom Images with lightbox
  • Editable Size of Images on the product page
  • Powerful Admin Module
  • Possibility of another menu type
  • Additional Navigation Link
  • It is clear, easy to customize Magento template.
  • Template is fully compatible with magento verion: 1.5.x.x, 1.6.x.x, 1.7++
  • PSDs file supplied, easy to edit
  • 100% Tableless design. 100% HTML/CSS/DIV compliance.
  • Valid XHTML and CSS markup
  • Tutorial and detailed User guide for installation and using.
  • Cross Browser Support (IE 7+, Safari, Mozilla Firefox, Chrome, Opera 9+)
  • User Guide Documentation .pdf, html file