中文字幕日韩精品一区二区免费_精品一区二区三区国产精品无卡在_国精品无码专区一区二区三区_国产αv三级中文在线

HTML類-1.19HTML基礎教程

對 HTML 進行分類(設置類),使我們能夠為元素的類定義 CSS 樣式。

創(chuàng)新互聯(lián)建站主營香格里拉網(wǎng)站建設的網(wǎng)絡公司,主營網(wǎng)站建設方案,重慶APP開發(fā)公司,香格里拉h(huán)5小程序開發(fā)搭建,香格里拉網(wǎng)站營銷推廣歡迎香格里拉等地區(qū)企業(yè)咨詢

為相同的類設置相同的樣式,或者為不同的類設置不同的樣式。

London

London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.

Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.

實例 <!DOCTYPE html><html><head><style>.cities { background-color:black; color:white; margin:20px; padding:20px;} </style></head><body><div class="cities"><h2>London</h2><p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p></div> </body></html>
分類塊級元素

HTML <div> 元素是塊級元素。它能夠用作其他 HTML 元素的容器。

設置 <div> 元素的類,使我們能夠為相同的 <div> 元素設置相同的類:

London

London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.

Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.

Paris

Paris is the capital and most populous city of France.

Situated on the Seine River, it is at the heart of the 蝜e-de-France region, also known as the r間ion parisienne.

Within its metropolitan area is one of the largest population centers in Europe, with over 12 million inhabitants.

Tokyo

Tokyo is the capital of Japan, the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.

It is the seat of the Japanese government and the Imperial Palace, and the home of the Japanese Imperial Family.

The Tokyo prefecture is part of the world's most populous metropolitan area with 38 million people and the world's largest urban economy.

實例 <!DOCTYPE html><html><head><style>.cities { background-color:black; color:white; margin:20px; padding:20px;} </style></head><body><div class="cities"><h2>London</h2><p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p></div><div class="cities"><h2>Paris</h2><p>Paris is the capital and most populous city of France.</p></div><div class="cities"><h2>Tokyo</h2><p>Tokyo is the capital of Japan, the center of the Greater Tokyo Area,and the most populous metropolitan area in the world.</p></div></body></html>
分類行內(nèi)元素

HTML <span> 元素是行內(nèi)元素,能夠用作文本的容器。

設置 <span> 元素的類,能夠為相同的 <span> 元素設置相同的樣式。

實例 <!DOCTYPE html><html><head><style> span.red {color:red;}</style></head><body><h1>My <span class="red">Important</span> Heading</h1></body></html>

本文標題:HTML類-1.19HTML基礎教程
文章地址:http://www.rwnh.cn/article28/dghhdcp.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供云服務器、標簽優(yōu)化、網(wǎng)站設計公司微信小程序、關(guān)鍵詞優(yōu)化、電子商務

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站
梨树县| 扶绥县| 同心县| 曲周县| 荆门市| 苍山县| 阿瓦提县| 阿图什市| 深圳市| 荥经县| 田林县| 林周县| 什邡市| 那曲县| 吕梁市| 剑河县| 辽宁省| 东台市| 增城市| 成都市| 湖南省| 上饶县| 安仁县| 都安| 应用必备| 德令哈市| 科技| 涟源市| 沽源县| 石柱| 湘乡市| 石柱| 南平市| 连云港市| 宁乡县| 峨眉山市| 收藏| 保靖县| 布尔津县| 旅游| 高安市|