


Use Bootstrap 3 to develop responsive website practice 04, use Panels to display content_html/css_WEB-ITnose
Jun 24, 2016 am 11:59 AM
In Bootstrap pages, Panels are usually used to display the content of main functions. This part of the Html is:
<div class="row" id="featureHeading"> <div class="col-md-12"> <h2>更多信息</h2> <p class="lead"> 廣州恒大淘寶隊(duì)的官方網(wǎng)站和微博同時(shí)發(fā)布了幾張海報(bào),預(yù)熱本周三晚8點(diǎn)即將到來的亞冠1/4決賽第二回合。 </p> </div> </div><!--主要功能標(biāo)題區(qū)域結(jié)束--> <div class="row" id="features"> <div class="col-sm-4 feature"> <div class="panel"> <div class="panel-heading"> <h3 class="panel-title">扭轉(zhuǎn)乾坤期待勝利</h3> </div> <img src="images/15.jpg" alt="15"/> <p> 8月27日晚20點(diǎn),廣州恒大將迎來亞冠聯(lián)賽的一場生死戰(zhàn),主場與西悉尼流浪者隊(duì)的第二回合比賽。 </p> <a href="http://sports.sina.com.cn/" target="_blank" class="btn btn-warning btn-block">更多賽事</a> </div> </div> <div class="col-sm-4 feature"> <div class="panel"> <div class="panel-heading"> <h3 class="panel-title">前場外援三箭齊發(fā)</h3> </div> <img src="images/16.jpg" alt="15"/> <p> 本場比賽恒大的后防線人員變化最大的,因?yàn)閺埩?、金英權(quán)同時(shí)停賽,里皮也只能讓其他國內(nèi)球員頂上這兩個位置。 </p> <a href="http://sports.sina.com.cn/" target="_blank" class="btn btn-success btn-block">更多賽事</a> </div> </div> <div class="col-sm-4 feature"> <div class="panel"> <div class="panel-heading"> <h3 class="panel-title">要90分鐘出線</h3> </div> <img src="images/17.jpg" alt="15"/> <p> 助理教練馬達(dá)洛尼代替出席,對于明天的比賽,馬達(dá)洛尼也轉(zhuǎn)述了主教練里皮的態(tài)度。我們有在明天拿下對手。 </p> <a href="http://sports.sina.com.cn/" target="_blank" class="btn btn-info btn-block">更多賽事</a> </div> </div> </div><!--主要功能區(qū)域結(jié)束-->
○ col-sm-4 attribute value: means that when the page width is greater than 768 pixels, it occupies 4 cells
○ < div class="panel"> is wrapped in div class="col-sm-4 feature">
□ If you make the image circular
-- Just add class="img-circle" to the image
<img src="images/15.jpg" alt="15" class="img-circle"/><img src="images/16.jpg" alt="15" class="img-circle"/><img src="images/17.jpg" alt="15" class="img-circle"/>
□ If you want to make the content in the Panel look better
--Customize CSS
is customized in site.css in the css folder.
/*---------------------------------------- Panel 主要功能介紹 ------------------------------------*/#features { text-align: center;}#features img { margin: 0 0 20px;}
Reference:
Code a Responsive Website with Bootstrap 3 --by Brad Hussey
http://getbootstrap.com/
http://bootswatch.com/
http://www.tutorialspoint.com/
http://www.placehold.it/
"Using Bootstrap 3 to develop responsive website practice" series includes:
Using Bootstrap 3 to develop responsive website practice 01, preliminary preparation, navigation area, etc.
Using Bootstrap 3 to develop responsive website Practice 02, Carousel
Use Bootstrap 3 to develop a responsive website Practice 03, Content layout below the carousel
Use Bootstrap 3 to develop a responsive website Practice 04, Use Panels to display content

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Using Bootstrap in Vue.js is divided into five steps: Install Bootstrap. Import Bootstrap in main.js. Use the Bootstrap component directly in the template. Optional: Custom style. Optional: Use plug-ins.

There are two ways to create a Bootstrap split line: using the tag, which creates a horizontal split line. Use the CSS border property to create custom style split lines.

Answer: You can use the date picker component of Bootstrap to view dates in the page. Steps: Introduce the Bootstrap framework. Create a date selector input box in HTML. Bootstrap will automatically add styles to the selector. Use JavaScript to get the selected date.

How to use Bootstrap to get the value of the search bar: Determines the ID or name of the search bar. Use JavaScript to get DOM elements. Gets the value of the element. Perform the required actions.

To verify dates in Bootstrap, follow these steps: Introduce the required scripts and styles; initialize the date selector component; set the data-bv-date attribute to enable verification; configure verification rules (such as date formats, error messages, etc.); integrate the Bootstrap verification framework and automatically verify date input when form is submitted.

How to use the Bootstrap button? Introduce Bootstrap CSS to create button elements and add Bootstrap button class to add button text

To set up the Bootstrap framework, you need to follow these steps: 1. Reference the Bootstrap file via CDN; 2. Download and host the file on your own server; 3. Include the Bootstrap file in HTML; 4. Compile Sass/Less as needed; 5. Import a custom file (optional). Once setup is complete, you can use Bootstrap's grid systems, components, and styles to create responsive websites and applications.

Web development design is a promising career field. However, this industry also faces many challenges. As more businesses and brands turn to the online marketplace, web developers have the opportunity to demonstrate their skills and succeed in their careers. However, as demand for web development continues to grow, the number of developers is also increasing, resulting in increasingly fierce competition. But it’s exciting that if you have the talent and will, you can always find new ways to create unique designs and ideas. As a web developer, you may need to keep looking for new tools and resources. These new tools and resources not only make your job more convenient, but also improve the quality of your work, thus helping you win more business and customers. The trends of web development are constantly changing.
