HTML 字体标记

2019-02-28 23:36|来源: 网路

标题标签 <hn> ==> n的取值范围是1~6;
   1.1~6从大到小.
   2.文字加粗
   3.换行
字体标签: <font> 该标签的使用必须配合属性.
   size:大小. 取值1~7之间 从小到大.
   face:字体.
   color:颜色
       1.直接填写颜色的英文名称
       2.#FF0000
       3.rgb(255,0,0)
其他一些简单标签:
   <strike> => 中划线.
   <big> => 变大
   <small> => 变小
   <u> =>  下划线
   <b> =>
   sub /sup => 上下角标.


示例

<html>
<head>
<!-- 解决乱码,告诉浏览器 当前文档类型和编码 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>静夜思</h1>
    <font face="黑体" size="7"  color="rgb(255,0,0)" >李白</font><br/>
<strike>床前明月光,</strike><br/>
<big>疑是地上霜.</big><br/>
<small>举头望明月,</small><br/>
<u>低头思故乡.</u><br/>
 
<b>床前明月光,</b><br/>
 
<hr>
 
3<sup>2</sup>,3<sub>2</sub>
 
</body>
</html>


转自网络


相关问答

更多
  • 这是我尝试同样的事情(使用“markerwithlabel”实用程序库)之前,我意识到Nathan在上面更加优雅: http : //jsfiddle.net/f3xchecf/ function initialize() { var myLatLng = new google.maps.LatLng( 50, 50 ), myOptions = { zoom: 4, center: myLatLng, map ...
  • 您应该使用CSS来设置内容的样式。 像这样:

    some text here

    You should use css to style your content. Like so:

    some text here

  • 我试过这种方式:它给了我(三星Galaxy Note N7000)橙色*和绿色的“第一”字 * This is Firstline in dialog
    ]]>
    String的Instand将dialogCreate的参数传 ...
  • 有很多方法可以完成你想要做的事情。 这是一个如何完成你想要做的很好的例子。 http://vb.net-informations.com/excel-2007/vb.net_excel_update_data_oledb.htm Imports System.Data Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Ha ...
  • 没有HTML标准,规范或草稿说明你可以通过@font-face使用的各种字体,因为它属于CSS,而不是HTML。 CSS规范和草案也对此保持沉默。 这适用于“混淆”的含义。 No HTML standard, specification, or draft says anything about the kinds of fonts you can use via @font-face, since that belongs to CSS, not HTML. CSS specifications and ...
  • 只需指定vertical-align: middle | top | bottom | {etc etc} vertical-align: middle | top | bottom | {etc etc} 您还可以在不同的上下文中使用vertical-align来对齐非常灵活和细粒度的元素。 不需要知道元素的大小。 元素保持在流动中,因此其他元素可以对这些元素的变化维度做出反应。 Just specify vertical-align: middle | top | bottom | {etc etc} ...
  • 嗨,你可以使用Html Agility pack.Here是一些代码示例,我希望它可以帮助你。 页面内容是有一些问题的HTML代码,SW是我保存更正的html的stringWriter。 HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); doc.LoadHtml(pagecontent); if (doc == null) ; doc.OptionCheckSynta ...
  • 您可以在CSS 3属性@font-face的帮助下包含True Type字体。 以下CSS将您的AMC字体应用于所有

    标记: @font-face { font-family: "AMC"; src: url("./AMC.ttf") format("truetype"); } h1 { font-family: "AMC", sans-serif; } 对于不支持网页字体的浏览器,您应该指定与您的字体类似的替代方法。 在上例中,如果由于浏览器未识别@font-face标记而无法找到A ...

  • 我发现通过JS脚本标记而不是css @import注入字体效果最好。 之后,客户端停止向我报告此问题。 这是一个简单的改变,它的工作原因必须与一些Chrome bug相关联。 I discovered that injecting fonts via JS script tag and not css @import works best. After that client stopped reporting me this issue. It's simple change and the reason ...
  • 使用其他选项设置edittext参数。 此外,请勿使用

    进行设置。 只支持几个标记:


    ...