杭州建设企业网站的,企业域名怎么查找,商城网站怎么自己搭建,互联网推广一、排版 标题 HTML 中的所有标题标签#xff0c;h1 到 h6 均可使用。另外#xff0c;还提供了 .h1 到 .h6 类#xff0c;为的是给内联#xff08;inline#xff09;属性的文本赋予标题的样式。 h1这是一个h1标签/h1h2这是一个h2… 一、排版 标题 HTML 中的所有标题标签h1 到 h6 均可使用。另外还提供了 .h1 到 .h6 类为的是给内联inline属性的文本赋予标题的样式。 h1这是一个h1标签/h1h2这是一个h2标签/h2h3这是一个h3标签/h3h4这是一个h4标签/h4h5这是一个h5标签/h5h6这是一个h6标签/h6 在标题内还可以包含 small 标签或赋予 .small 类的元素可以用来标记副标题。 内联文本元素 You can use the mark tag to markhighlight/mark text. 被删除的文本和无用文本 对于被删除的文本使用 del 标签。而对于没用的文本使用 s 标签。 delThis line of text is meant to be treated as deleted text./del
sThis line of text is meant to be treated as no longer accurate./s 插入文本和带下划线的文本 额外插入的文本使用 ins 标签。而为文本添加下划线使用 u 标签。 insThis line of text is meant to be treated as an addition to the document./ins
uThis line of text will render as underlined/u 文本的对齐方式 通过文本对齐类可以简单方便的将文字重新对齐。 p classtext-leftLeft aligned text./p
p classtext-centerCenter aligned text./p
p classtext-rightRight aligned text./p
p classtext-justifyJustified text./p
p classtext-nowrapNo wrap text./p 改变文本的大小写 p classtext-lowercasehello world!!/p
p classtext-uppercasehello world!!/p
p classtext-capitalizehello world!!/p 列表 分为无序列表、有序列表、无样式列表和内联列表 ①无序列表 ul!--无序列表-- liLorem ipsum dolor sit amet/li liConsectetur adipiscing elit/li liNulla volutpat aliquam velit ul liPhasellus iaculis neque/li liPurus sodales ultricies/li liVestibulum laoreet porttitor sem/li /ul /li liLorem ipsum dolor sit amet/li /ul ②有序列表 olliLorem ipsum dolor sit amet/liliConsectetur adipiscing elit/liliNulla volutpat aliquam velit/liliLorem ipsum dolor sit amet/li
/ol ③无样式列表 移除了默认的 list-style 样式和左侧外边距的一组元素只针对直接子元素。这是针对直接子元素的也就是说你需要对所有嵌套的列表都添加这个类才能具有同样的样式。 ul classlist-unstyledliLorem ipsum dolor sit amet/liliConsectetur adipiscing elit/liliNulla volutpat aliquam velitulliPhasellus iaculis neque/liliPurus sodales ultricies/liliVestibulum laoreet porttitor sem/li/ul/liliLorem ipsum dolor sit amet/li
/ul ④内联列表 通过设置 display: inline-block; 并添加少量的内补padding将所有元素放置于同一行。 ul classlist-inlineliLorem ipsum dolor sit amet/liliConsectetur adipiscing elit/liliNulla volutpat aliquam velit/liliLorem ipsum dolor sit amet/li
/ul 二、代码 内联代码 通过 code 标签包裹内联样式的代码片段。 pFor example, codelt;sectiongt;/code should be wrapped as inline./p 用户输入 通过 kbd 标签标记用户通过键盘输入的内容。 pTo switch directories, type kbdcd/kbd followed by the name of the directory./p 代码块 多行代码可以使用 pre 标签。为了正确的展示代码注意将尖括号做转义处理。 prelt;pgt;Sample text here...lt;/pgt;/pre 三、表格 标准表格样式 为任意 table 标签添加 .table 类可以为其赋予基本的样式 — 少量的内补padding和水平方向的分隔线。这种方式看起来很多余但是我们觉得表格元素使用的很广泛如果我们为其赋予默认样式可能会影响例如日历和日期选择之类的插件所以我们选择将此样式独立出来。 table classtable table-borderedtheadtrthwhgogogdaw/ththdawgdawdg/th/tr/theadtbodytr classdangertd111111/tdtd111111/td/trtrtd111111/tdtd111111/td/trtrtd111111/tdtd111111/td/tr/tbody/table 条纹状表格 通过 .table-striped 类可以给 tbody 之内的每一行增加斑马条纹样式。 table classtable table-bordered table-stripedtheadtrthwhgogogdaw/ththdawgdawdg/th/tr/theadtbodytrtd111111/tdtd111111/td/trtrtd111111/tdtd111111/td/tr/tbody/table 鼠标悬停 通过添加 .table-hover 类可以让 tbody 中的每一行对鼠标悬停状态作出响应。相当于CSS中的点击事件 table classtable table-hover...
/table 紧缩表格 通过添加 .table-condensed 类可以让表格更加紧凑单元格中的内补padding均会减半。 状态类 table classtable table-bordered table-striped table-hovertheadtrthwhgogogdaw/ththdawgdawdg/th/tr/theadtbodytr classactivetd111111/tdtd111111/td/trtr classsuccesstd111111/tdtd111111/td/trtr classdangertd111111/tdtd111111/td/tr/tbody
/table BootStrap框架的内容今天就先写到这里往后会陆续更新完善更新希望能够帮助到您 转载于:https://www.cnblogs.com/wuhao752718372/p/7535556.html