search
HomeWeb Front-endHTML TutorialUse Bootstrap 3 to develop responsive website practice 06, use ListGroup and Thumbnails to display content_html/css_WEB-ITnose

When you want to display the same type of content in lists and blocks, ListGroup is a good choice.

<div class="col-sm-6">                <h3 id="马云为恒大生死战开出男人奖-nbsp">马云为恒大生死战开出男人奖 </h3>                <p>                    8月27日晚,广州恒大将迎来亚冠联赛生死战,主场迎战西悉尼流浪者队,由于一周之前已经在客场0-1负于对手,本场比赛恒大队必须置死地而后生在主场净胜对手两球。就在今天中午,前不久入主恒大的阿里巴巴老板马云来到球队,在鼓励球员的同时开出了2000万的男人奖。马云表示:无论输赢都会发放这笔奖金,只希望球员们像男人一样去战斗。                </p>                <h4 id="这里是ListGroup">这里是ListGroup</h4>                                <div class="list-group">                    <a href="#" class="list-group-item">                        <h4 id="无论输赢重奖-万">无论输赢重奖2000万</h4>                        <p class="list-group-item-text">                            就在今天中午,前不久入主恒大的阿里巴巴老板马云来到球队,在鼓励球员的同时开出了2000万的男人奖。                        </p>                    </a>                    <a href="#" class="list-group-item">                        <h4 id="许家印已经向马云发出了观看比赛的邀请">许家印已经向马云发出了观看比赛的邀请</h4>                        <p class="list-group-item-text">                            不过,最终马云将用自己的实际行动给出了回答:这就是在27日晚上前往天河体育场观战,与恒大队一起战斗。                        </p>                    </a>                    <a href="#" class="list-group-item">                        <h4 id="马云先是前往恒大足校进行了参观">马云先是前往恒大足校进行了参观</h4>                        <p class="list-group-item-text">                            27日上午,马云先是前往恒大足校进行了参观。随后来到了恒大基地,与即将在晚上比赛的球员进行了见面。                        </p>                    </a>                </div>                                <h5 id="主场迎战西悉尼流浪者队">主场迎战西悉尼流浪者队</h5>                <p>                    27日上午,马云先是前往恒大足校进行了参观。随后来到了恒大基地,与即将在晚上比赛的球员进行了见面。马云的话语很简短:我知道这场比赛对所有人都非常重要,我希望你们像男人一样去战斗。所以,这场比赛我们将设立一个男人奖,无论输赢,都会奖励2000万。这也是马云入主恒大以来,第一次与全队进行见面,在生死战来临之时,马云并没有给球队提出成绩压力,只是用“像男人一样去战斗”的这样方式来激励球队,显然对恒大队是一个极大的鼓舞。(于静 发自广州)                </p>            </div><!--右半边结束-->

Use Bootstrap 3 to develop responsive website practice 06, use ListGroup and Thumbnails to display content_html/css_WEB-ITnose

○ The list content has been manipulated in


○ The list items are all

At the Evergrande Western Sydney pre-war joint meeting held on the afternoon of the 26th, Evergrande was told that it needed to wear away jerseys to play at home because the opponent Western Sydney’s home and away jerseys were all red. host. However, Evergrande's wearing of home jersey was not because the opponent deliberately caused trouble, but because the AFC's review procedures were incorrect, which caused the problem.

Evergrande’s focus is on Beijing Guoan [Weibo]’s away game against Shandong Luneng [Weibo]. He took the absolute initiative in the competition for the championship. Guoan may catch up.
<div class="row" id="moreProducts">            <div class="col-md-12">                <h3 id="了解更多的恒大信息">了解更多的恒大信息</h3>                <div class="thumbnails row">                    <div class="col-md-6">                        <div class="thumbnail">                            <img  src="/static/imghwm/default1.png"  data-src="images/21.jpg"  class="lazy"      style="max-width:90%"/ alt="Use Bootstrap 3 to develop responsive website practice 06, use ListGroup and Thumbnails to display content_html/css_WEB-ITnose" >                            <div class="label label-success price"><span class="glyphicon glyphicon-tag"><sup>¥</sup>88</span></div>                            <div class="caption">                                <h3 id="恒大穿客场球衣">恒大穿客场球衣</h3>                                <p>


</p>                                                               <p>                                    <a href="#" class="btn btn-primary btn-small" target="_blank">恒大官网</a>                                                                         <a href="#" class="btn btn-small btn-link">了解更多</a>                                </p>                            </div>                        </div>                    </div>                                        <div class="col-md-6">                        <div class="thumbnail">                            <img  src="/static/imghwm/default1.png"  data-src="images/22.jpg"  class="lazy"      style="max-width:90%"/ alt="Use Bootstrap 3 to develop responsive website practice 06, use ListGroup and Thumbnails to display content_html/css_WEB-ITnose" >                            <div class="label label-info price"><span class="glyphicon glyphicon-tag"><sup>¥</sup>66</span></div>                            <div class="caption">                                <h3 id="中超争冠恒大暂优势明显">中超争冠恒大暂优势明显</h3>                                <p>


All thumbnails are wrapped in

is not each thumbnail, but
, occupying 2 cells
 </p>                                <p>                                    <a href="#" class="btn btn-primary btn-small" target="_blank">国安官网</a>                                                                         <a href="#" class="btn btn-small btn-link">了解更多</a>                                </p>                            </div>                        </div>                    </div>                </div>            </div>        </div>
 <!--更多产品区域结束-->
○ Each thumbnail is wrapped in
in

Use Bootstrap 3 to develop responsive website practice 06, use ListGroup and Thumbnails to display content_html/css_WEB-ITnose

and then adjust the position of the label to the upper right of the picture.

Since we have considered the CSS settings in smartphones, when the page width becomes smaller, the font of the price label will also become smaller accordingly, so that it will not be inconspicuous. coordination.

/*----------------------------------------    Thumbnail 价格标签    ------------------------------------*/.thumbnails {    margin: 20px 0;}.thumbnail {    position: relative;}.thumbnail h3 {    font-size: 16px;    margin: 0 0 10px;    line-height: 20px;}.thumbnail .price {    font-size: 22px;    position: absolute;    top: -10px;    right: -10px;    padding: 10px;}.thumbnail .price sup {    font-weight: normal;    font-size: 12px;}.thumbnail span.glyphicon {    margin-right: 5px;}/*----------------------------------------    智能手机    ------------------------------------*/@media (max-width: 480px) {    .thumbnail .price {        font-size: 14px;    }    .thumbnail .price sup {        font-size: 10px;    }}/*----------------------------------------    平板    ------------------------------------*/@media (max-width: 768px) {    #myCarousel .item{ height: 310px;}}

Use Bootstrap 3 to develop responsive website practice 06, use ListGroup and Thumbnails to display content_html/css_WEB-ITnose

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Beyond HTML: Essential Technologies for Web DevelopmentBeyond HTML: Essential Technologies for Web DevelopmentApr 26, 2025 am 12:04 AM

To build a website with powerful functions and good user experience, HTML alone is not enough. The following technology is also required: JavaScript gives web page dynamic and interactiveness, and real-time changes are achieved by operating DOM. CSS is responsible for the style and layout of the web page to improve aesthetics and user experience. Modern frameworks and libraries such as React, Vue.js and Angular improve development efficiency and code organization structure.

What are boolean attributes in HTML? Give some examples.What are boolean attributes in HTML? Give some examples.Apr 25, 2025 am 12:01 AM

Boolean attributes are special attributes in HTML that are activated without a value. 1. The Boolean attribute controls the behavior of the element by whether it exists or not, such as disabled disable the input box. 2.Their working principle is to change element behavior according to the existence of attributes when the browser parses. 3. The basic usage is to directly add attributes, and the advanced usage can be dynamically controlled through JavaScript. 4. Common mistakes are mistakenly thinking that values ​​need to be set, and the correct writing method should be concise. 5. The best practice is to keep the code concise and use Boolean properties reasonably to optimize web page performance and user experience.

How can you validate your HTML code?How can you validate your HTML code?Apr 24, 2025 am 12:04 AM

HTML code can be cleaner with online validators, integrated tools and automated processes. 1) Use W3CMarkupValidationService to verify HTML code online. 2) Install and configure HTMLHint extension in VisualStudioCode for real-time verification. 3) Use HTMLTidy to automatically verify and clean HTML files in the construction process.

HTML vs. CSS and JavaScript: Comparing Web TechnologiesHTML vs. CSS and JavaScript: Comparing Web TechnologiesApr 23, 2025 am 12:05 AM

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

HTML as a Markup Language: Its Function and PurposeHTML as a Markup Language: Its Function and PurposeApr 22, 2025 am 12:02 AM

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!