<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Superscript_size_in_table_cell</title>
<meta name="generator" content="BBEdit 10.5" />
<style>
table {
width: 60%;
font-size: 0.8em;
margin-left:auto;
margin-right:auto;
border-collapse: collapse;
}
.super_script {
font-size: 80%;
vertical-align: super;
}
</style>
</head>
<body>
<table id="table_1a-27">
<caption class="table_caption">Table 1A-27</caption>
<tr>
<td>Some text<span class="super_script">Note 1</span></td>
</tr>
<tr>
<td>
<ol>
<li>Beginning of sentence<span class="super_script">Note 2</span> than the rest of the sentence.</li>
<li>Some stuff here</li>
</ol>
</td>
</tr>
</table>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我想更改表格单元格的部分内容的文本大小和位置,但上面似乎不适用于表格单元格中的文本.我希望能够调整表格元素的大小,而不仅仅是为了上标目的.
我正在寻求一些帮助,创建一个可以根据不同屏幕尺寸/设备进行扩展的边框 我已经附上了预期的结果,到目前为止我写的html/css和一个实时页面来预览到目前为止的结果.
我接近完成一场比赛,但必须有一种(更简单?更好?)的方式来重新创造这种类型的边界.非常感谢您对此的看法以及您的意见.
问候,
和风
我也尝试过使用background-image:和创建六个.png文件,每个角落一个带有纯白色背景,一个用于"边框"的顶部/底部和左/右侧.再次,它很接近,但图像并不总是正确排列.
必须有一种方法可以做到这一点,也许是在一个svg图像中,根据其所在部分的大小来扩展自己,但这超出了我的才能.
谢谢你考虑这个问题!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>
EP Layout Test
</title>
<style type="text/css">
.ep {
background-image: url(ep_border_top_left-w.png), url(ep_border_top_right-w.png),url(ep_border_bottom_right-w.png), url(ep_border_bottom_left-w.png), url(ep_border_vertical.png), url(ep_border_vertical.png), url(ep_border_horizontal.png), url(ep_border_horizontal.png);
background-position: top left, top right, bottom right, bottom left, left, right, top, bottom;
background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-y, repeat-y, repeat-x, repeat-x;
width: 70%; …Run Code Online (Sandbox Code Playgroud)