Home  >  Article  >  Web Front-end  >  如何通过CSS设置上标?_html/css_WEB-ITnose

如何通过CSS设置上标?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:01:311683browse

我想通过css对class="abc" 的td 里面的文字内容设置上标,上标为2.jpg,我该怎么写呢?

大神们!帮帮我把。谢谢!


回复讨论(解决方案)

.abc {
vertical-align: super; 
}

哥,那我怎么确定上标是2.jpg的图片呢?
比如说我的代码是这样的:

我爱北京

我要在“我爱北京”上面加一个2.jpg的上标。我仅仅加那段CSS不够吧?不能确定上标是2.jpg图片啊。谢谢!!!!

如果2.jpg和CSS文件都在同一级目录下,谢谢!!


我爱北京如何通过CSS设置上标?_html/css_WEB-ITnose
或者

我爱北京

学会了,谢谢大神!!!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn