-1

真ん中にたくさんの項目がある Web ページがあり、ページの左上隅に「ユーザー名としてログインしています」という小さなテキストを追加したいと考えています。これを行う方法はありますか?

編集: 私の HTML ページ

<p style="position:fixed;top:0:right:0;color:blue" size="2">You are logged in as: {{ 
<body style="margin-left:100;margin-top:50">
    <table border="2">
        <tr>
            <th>Name</th>
            <th>Created By</th>
            <th>IP Range</th>
            <th>Date to Run</th>
        </tr>
        <form id="checkboxes" method="post" action="myurl">
            <tr>
                <td><input type="checkbox" name="checkable" /></td>
                <td><a href="mysecondurl">name</a></td>
                <td>user</td>
                <td>ip</td>
                <td>time</td>
            </tr>

            <select id="dropdown">
                <option />
                <option value="Delete">Delete</option>
                <option value="Change">Change</option>
            </select>
            <input type="hidden" name="isDeleting" value="True"/>
            <input type="submit" value="Go" />
        </form>
    </table><br />
    <form method="post" action="{% url 'Minion.views.add' %}">
        <input type="submit" value="Add" />
    </form>
    <form method="post" action="{% url 'Minion.views.index' %}">
        <input type="hidden" name="loggingOut" value="True">
        <input type="submit" value="Logout" />
    </form>
</body>

これは以下の提案によるもので、ユーザー名のテキストをページのタイトルに重ねるだけです。

4

2 に答える 2

1

それは異なります:何の左上隅ですか?ブラウザウィンドウ?その場合position: fixed、左上に永久に貼り付けるために使用することを検討できます。または、ページの最初の項目にするだけです。

于 2013-06-19T22:00:44.183 に答える