簡體   English   中英

未編號列表子彈點不居中

[英]Unnumbered List Bullet points not centered

以網頁為中心存在輕微問題。 當我希望它們在列表項之前居中並且在它之前時,我的子彈點對齊到左邊。

http://web.engr.oregonstate.edu/~todtm/Assignment1.htm

列表的代碼是非常基本的樣板代碼:

<center>
    <ul>
         <li>CS 325: Analysis of Algorithms</li>
         <li>CS 361: Software Engineering I</li>
         <li>CS 372: Intro to Computer Networks</li>
    </ul>
</center>

中心標記在HTML中已棄用。 另一種可能的方法(或類似的東西)是將它放在固定寬度的div中,邊距為:0 auto。 這是一個快速的小提琴

<body>
<div style="
margin: 0 auto;
width: 400px;
text-align: center;">
<h1>Marshall Todt</h1>
<br>
<br>

<table align="center" border="1">
    <tbody><tr><td colspan="2">My Favorite Courses and Instructors</td></tr>
    <tr><td>Course</td><td>Instructor</td></tr>
    <tr><td>CS 165</td><td>Joseph Jess</td></tr>
    <tr><td>CS 494</td><td>Justin Wolford</td></tr>
</tbody></table>

<ul style="list-style-position: inside">
    <li>CS 325: Analysis of Algorithms</li>
    <li>CS 361: Software Engineering I</li>
    <li>CS 372: Intro to Computer Networks</li>
</ul>

<form method="post" action="submit.php">
<p class="legend">Rate a Class</p>
<fieldset id="Rating">
<label>Course:</label><input type="text" name="class" size="30"><br>
<p id="rating"><label>Rating: </label><select name="rating">
    <option value="5">5 (highest)</option>
    <option value="4">4</option>
    <option value="3">3</option>
    <option value="2">2</option>
    <option value="1">1 (lowest)</option>
</select></p>
<p id="buttons"><input type="submit" value="Submit"></p>
</fieldset>
</form>
</div>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM