看完谁再说搞不定上下角标?

本文介绍了在开发中如何使用HTML标签、CSS样式和CV大法来实现上下角标的需求,包括标签写法、CSS样式设置以及CV快捷方式,为开发者提供多种实现上下标文本的方法。
摘要由CSDN通过智能技术生成

一、需求

开发中有一些需要用到上下角标的地方,比如说化学式、数学式、注释。。。除了可以使用上下角标的标签,还可以通过css样式和CV大法实现,以下是具体实现方式。

二、实现方法

(1)标签写法:

<sup></sup> // 上标
<sub></sub> // 下标

示例: 

<div>上标标签
  注释 <sup>[1]</sup>
</div>
            
<div>下标标签
  H<sub>2</sub>O 
</div>

(2)css样式写法

将需要被上标或者下标的文本,包裹在span标签中,再给span标签分别设置以下css样式即可

上标:vertical-align: super;

下标:vertical-align: sub;

示例:

<div>上标样式: 2*2= 2 <span style="vertical-align: super">2</span> </div>
<div>下标样式: PM <span style="vertical-align: sub">2.5</span> </div>

(3)CV大法

虽然上下角标的使用场景不是特别多,但是如果页面有多个文本需要用的时候也很头疼,标签和样式都太麻烦了,为了方便高效的开发,(其实只是我懒而已)准备好了一些常用的上下角标,CV过去就可以了:

上标:N¹²³⁴⁵⁶⁷⁸⁹⁰ ⁺ ⁻ ⁼ ⁽ ⁾ ⁿ ʰ ʲ ʳ ʷ ʸ ˡ ˢ ˣ ª ʹ ʺ ʻ ʼ ʽ ˘ ˚ ˜ º ™

下标:PM .₀₁₂₃₄₅₆₇₈₉ ₊ ₋ ₌ ₍ ₎ ˌ ˍ ˎ ˏ ˛

ps:当然如果你有其他更好的办法,可以给我留言噢~ 

n the present research, a hybrid laser polishing technology combining pulsed laser and continuous wave laser was applied to polish the surface of laser directed energy deposition (LDED) Inconel 718 superalloy components. The surface morphology, microstructure evolution and microhardness of the as-fabricated, the single pulsed laser polishing (SPLP) and the hybrid laser polishing (HLP) processed samples were investigated. The results revealed that the as-fabricated sample has a rough surface with sintered powders. In the matrix, the NbC carbide and Cr2Nb based Laves phase array parallel to the build direction and the small γʺ-Ni3Nb particles precipitate in matrix uniformly. The surface roughness of the as-fabricated sample is 15.75 μm which is decreased to 6.14 μm and 0.23 μm by SPLP and HLP processing, respectively. The SPLP processing refines the grains and secondary phase significantly in the remelted layer which is reconstructured with the cellular structure and plenty of substructures. The HLP processing also refines the grain and secondary phase but the secondary phases still exhibit array distribution. In addition, the tangled dislocations pile up along the interface of secondary phases. Compared with the as-fabricated sample, the SPLP processing decreases the surface microhardness but the HLP processing increases the surface microhardness, and the Young's elasticity modulus of surface layer is improved by SPLP and HLP processing to 282 ± 5.21 GPa and 304 ± 5.57 GPa, respectively. 翻译
07-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值