bootstrap 不换行css_Bootstrap(二):CSS--排版

本文详细介绍了Bootstrap的排版,包括各种标题级别、页眉、内联文本元素(如高亮、删除线、下划线等)、文本对齐方式、大小写转换以及列表和描述列表的使用。通过这些元素,可以创建出丰富且专业的网页布局。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.标题  : 

……

  & 

h1. Bootstrap heading

h2. Bootstrap heading

h3. Bootstrap heading

h4. Bootstrap heading
h5. Bootstrap heading
h6. Bootstrap heading

2.页面主体

字体格式为14PX、行高1.428、

(段落)元素还被设置了等于 1/2 行高(即 10px)的底部外边距(margin);

4.中心内容 : .lead

Nullam quis risus ...... vehicula.

Cum sociis natoque ...... fringilla.

Maecenas ...... nec elit.

Maecenas ...... io sem nec elit.

5.内联文本元素

You can use the mark tag to highlight text.

You can use the mark tag to highlight text.

You can use the mark tag to highlight text.

You can use the mark tag to highlight text.

You can use the mark tag to highlight text.

6.被删除的文本 

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as deleted text.

7.无用文本 :

? --> 无用文本与被删除文本有什么区别呢?

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as no longer accurate.

8.插入文本 :

This line of text is meant to be treated as an addition to the document.

This line of text is meant to be treated as an addition to the document.

This line of text is meant to be treated as an addition to the document.

This line of text is meant to be treated as an addition to the document.

This line of text is meant to be treated as an addition to the document.

9.带下划线的文本

This line of text will render as underlined

This line of text will render as underlined

This line of text will render as underlined

This line of text will render as underlined

This line of text will render as underlined

10.小号文本

This line of text is meant to be treated as fine print.

This line of text is meant to be treated as fine print.

This line of text is meant to be treated as fine print.

This line of text is meant to be treated as fine print.

This line of text is meant to be treated as fine print.

11.着重文字 :

The following snippet of text is rendered as bold text.

The following snippet of text is rendered as bold text.

The following snippet of text is rendered as bold text.

The following snippet of text is rendered as bold text.

The following snippet of text is rendered as bold text.

12.斜体 :

The following snippet of text is rendered as italicized text.

The following snippet of text is rendered as italicized text.

The following snippet of text is rendered as italicized text.

The following snippet of text is rendered as italicized text.

The following snippet of text is rendered as italicized text.

13.文本对齐 :  CSS --> text-left、text-center、text-right、text-justify、text-nowrap

这段文字居中对齐:Shanghai is the largest city by population in the People's Republic of China (PRC)

and the largest city proper by population in the world. It is one of the four province-level municipalities of the PRC, with a total

population of over 23 million as of 2010. It is a global city, with influence in commerce, culture, finance, media, fashion, technology,

and transport. It is a major financial center and the busiest container port in the world.

这段文字居中对齐:Shanghai is the largest city by population in the People's Republic of China (PRC)

and the largest city proper by population in the world. It is one of the four province-level municipalities of the PRC, with a total

population of over 23 million as of 2010. It is a global city, with influence in commerce, culture, finance, media, fashion, technology,

and transport. It is a major financial center and the busiest container port in the world.

这段文字右对齐:Shanghai is the largest city by population in the People's Republic of China (PRC)

and the largest city proper by population in the world. It is one of the four province-level municipalities of the PRC, with a total

population of over 23 million as of 2010. It is a global city, with influence in commerce, culture, finance, media, fashion, technology,

and transport. It is a major financial center and the busiest container port in the world.

这段文字两端对齐:Shanghai is the largest city by population in the People's Republic of China (PRC)

and the largest city proper by population in the world. It is one of the four province-level municipalities of the PRC, with a total

population of over 23 million as of 2010. It is a global city, with influence in commerce, culture, finance, media, fashion, technology,

and transport. It is a major financial center and the busiest container port in the world.

这段文字不换行:Shanghai is the largest city by population in the People's Republic of China (PRC)

and the largest city proper by population in the world. It is one of the four province-level municipalities of the PRC, with a total

population of over 23 million as of 2010. It is a global city, with influence in commerce, culture, finance, media, fashion, technology,

and transport. It is a major financial center and the busiest container port in the world.

14.大小写  CSS--> text-lowercase 、text-uppercase 、text-capitalize

Lowercased text.

Lowercased text.

Uppercased text.

Capitalized text.

15.缩略语 : 

添加上  .initialism  样式会使得缩略语的字体大小略小一点;

HTMLis the best thing since sliced bread.

HTMLis the best thing since sliced bread.

16.地址 :

Twitter, Inc.
795 Folsom Ave, Suite 600
San Francisco, CA 94107

P:(123) 456-7890

Full Name

first.last@example.com

17.引用 :

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title

18.列表

①无序列表

  • 果汁
  • 牛奶
  • 咖啡
    • 蓝山
    • 拿铁
    • 玛奇朵
  • 啤酒
  • 白酒
  • 矿泉水

②有序列表

  1. 果汁
  2. 牛奶
  3. 咖啡
    • 蓝山
    • 拿铁
    • 玛奇朵
  4. 啤酒
  5. 白酒
  6. 矿泉水

④无样式列表

果汁牛奶咖啡
  • 蓝山
  • 拿铁
  • 玛奇朵
啤酒白酒矿泉水

⑤内联列表

果汁牛奶咖啡 啤酒白酒矿泉水

19.描述

①垂直排列

果汁
这里是对果汁的描述。
什么是咖啡
这里是对咖啡的描述。

②水平排列

果汁这里是对果汁的描述。啤酒的基本介绍啤酒的基本介绍啤酒是人类最古老的酒精饮料之一,是水和茶之后世界上消耗量排名第三的饮料。啤酒于二十世纪初传入中国,属外来酒种。

啤酒是根据英语Beer译成中文“啤”,称其为“啤酒”,沿用至今。

什么是咖啡这里是对咖啡的描述。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值