填写剩下的表格单元格用点的一排 [英] Fill remaining table cell with a row of dots

查看:89
本文介绍了填写剩下的表格单元格用点的一排的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建的HTML报告(它是填充的形式)。我有一个表,在其中包含在一旁项目,是/否复选框列表形式的底部。我需要这个工作,让包含一个问题左边细胞有充满点的任何空白区域,例如:

I am creating an HTML report (it's to be a form for filling in). I have a table at the bottom of the form which contains a list of items and yes/no checkboxes at the side. I need to have this work so that cells on the left that contain a question have any empty space filled with dots, e.g.:

Short question......................... yes no
Longer question etc, etc............... yes no

有谁知道这样做,最好通过CSS的方式,但在服务器端,如果必要的。

Does anyone know of a way of doing this, ideally by CSS, but on the server side if necessary.

推荐答案

您可以使用表格。溢出:经过150像素dissapear隐藏将使点,你将有不同的行不同长度的点填充

you can use tables. overflow: hidden will make dots after 150px dissapear and you will have dot fill of different length for different rows

<table>
    <tr>
        <td style="width: 150px; overflow: hidden;">
            Short question........................................................
        </td>
        <td>
            yes no
        </td>
    </tr>
</table>

这篇关于填写剩下的表格单元格用点的一排的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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