0

有没有办法让我的下拉菜单 [提交] 和 [添加] | [编辑] imgs 在顶部的同一行?

    print "<td valign=\"top\" align=\"right\">\n";
    print "<a href=\"$popup_href\" class=\"action_link\" title=\"Add\"><img src=\"images/add.png\" alt=\"Add\" width=\"20\" height=\"20\" border=\"0\"></a>\n";
    print "<a href=\"daily.php?$ymdStr\" title=\"Edit\"><img src=\"images/edit.png\" alt=\"Edit\" width=\"20\" height=\"20\" border=\"0\"></a>\n";
    print "<ul id=\"nav\" class=\"drop\">\n";
    print "<li onmouseover=\"\"><b>Submit</b>\n";
    print "<ul>\n";
    print "<li><a href=\"confirm.php?$ymdStr\">Timesheet</a></li>\n";
    print "<li><a href=\"overtime.php?$ymdStr\">Overtime</a></li>\n";
    print "</ul></li></ul></td>\n";

示例图片:在此处输入图像描述

4

1 回答 1

0

想通了...只需要制作一个新的<td>,它们现在就在同一条线上。

使固定:

        print "<td valign=\"top\" align=\"right\">\n";
        print "<a href=\"$popup_href\" class=\"action_link\" title=\"Add\"><img src=\"images/add.png\" alt=\"Add\" width=\"20\" height=\"20\" border=\"0\"></a>\n";
        print "<a href=\"daily.php?$ymdStr\" title=\"Edit\"><img src=\"images/edit.png\" alt=\"Edit\" width=\"20\" height=\"20\" border=\"0\"></a></td>\n";
        print "<td valign=\"top\" align=\"right\">\n";
        print "<ul id=\"nav\" class=\"drop\">\n";
        print "<li onmouseover=\"\"><b>Submit</b>\n";
        print "<ul>\n";
        print "<li><a href=\"confirm.php?$ymdStr\">Timesheet</a></li>\n";
        print "<li><a href=\"overtime.php?$ymdStr\">Overtime</a></li>\n";
        print "</ul></li></ul></td>\n";
于 2013-02-07T20:40:19.513 回答