


Use Bootstrap 3 to develop responsive website practice 04, use Panels to display content_html/css_WEB-ITnose
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"> 广州恒大淘宝队的官方网站和微博同时发布了几张海报,预热本周三晚8点即将到来的亚冠1/4决赛第二回合。 </p> </div> </div><!--主要功能标题区域结束--> <div class="row" id="features"> <div class="col-sm-4 feature"> <div class="panel"> <div class="panel-heading"> <h3 class="panel-title">扭转乾坤期待胜利</h3> </div> <img src="images/15.jpg" alt="15"/> <p> 8月27日晚20点,广州恒大将迎来亚冠联赛的一场生死战,主场与西悉尼流浪者队的第二回合比赛。 </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">前场外援三箭齐发</h3> </div> <img src="images/16.jpg" alt="15"/> <p> 本场比赛恒大的后防线人员变化最大的,因为张琳?、金英权同时停赛,里皮也只能让其他国内球员顶上这两个位置。 </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> 助理教练马达洛尼代替出席,对于明天的比赛,马达洛尼也转述了主教练里皮的态度。我们有在明天拿下对手。 </p> <a href="http://sports.sina.com.cn/" target="_blank" class="btn btn-info btn-block">更多赛事</a> </div> </div> </div><!--主要功能区域结束-->
○ 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

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

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

Undress AI Tool
Undress images for free

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.

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.

Use Bootstrap to implement vertical centering: flexbox method: Use the d-flex, justify-content-center, and align-items-center classes to place elements in the flexbox container. align-items-center class method: For browsers that do not support flexbox, use the align-items-center class, provided that the parent element has a defined height.

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.

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.

There are several ways to insert images in Bootstrap: insert images directly, using the HTML img tag. With the Bootstrap image component, you can provide responsive images and more styles. Set the image size, use the img-fluid class to make the image adaptable. Set the border, using the img-bordered class. Set the rounded corners and use the img-rounded class. Set the shadow, use the shadow class. Resize and position the image, using CSS style. Using the background image, use the background-image CSS property.

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

To adjust the size of elements in Bootstrap, you can use the dimension class, which includes: adjusting width: .col-, .w-, .mw-adjust height: .h-, .min-h-, .max-h-
