本文介绍了如何在表格行中放置图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我想在表格行中放置图片,如何使用xplain代码为其创建图片.我想创建标题栏,然后在标题栏中放置Home,Aboutus选项.
Hi, I want to put an image in the table row how to create it can u plz xplain code for it . i want to create title bas in which i want to put Home,Aboutus option in title bar.
推荐答案
<table><tbody><tr><td><img src="YourImageSource" />Your Text Here</td></tr></tbody></table>
[ ^ ]
Create Html Title Bar[^]
<style type="text/css">
.ClassName
{
background-image:YoourImagePath;
}
</style>
<table>
<tr class="className">
<td></td>
</tr>
</table>
或
2使用class
将图像应用于表格列
OR
2 applying image to the table column using class
<style type="text/css">
.ClassName
{
background-image:YoourImagePath;
}
</style>
<table>
<tr >
<td class="className"></td>
</tr>
</table>
这篇关于如何在表格行中放置图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!