如何在表格行中放置图片? [英] How to put an image in the table row?

查看:113
本文介绍了如何在表格行中放置图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想在表格行中放置图片,如何使用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.

推荐答案

如何在表行中插入图像
How to insert an image in a Table Row
<table><tbody><tr><td><img src="YourImageSource" />Your Text Here</td></tr></tbody></table>



Create Html Title Bar[^]


嘿朋友,
如果您要在表格行中插入图片,则只需为图片编写CSS类,您可以通过两种方式做到这一点

1.使用class
将图像应用于表行
Hey Friend ,
if u want to insert an image in to table row then you just need to write css class for image you can do it two ways

1. applying image to the table row using class
<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>


这篇关于如何在表格行中放置图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆