问:我需要使用Bootstrap设置此页面的样式,但是我无法获得需要用黑色边框设置标签样式的信息,并且需要在容器的顶部和底部添加一些边距
<?php
require_once ("../templates/header.php");
?>
<?php
require_once ("../core/initialize.php");
?>
<div class="container" style="border: 1px dotted red;">
<div class="row">
<div class="panel panel-default">
<div class="panel-body">
<form method="post" id="exam-form" name="exam-form" action="submit_exam.php" class="form">
<?php
// Get questions from Database
//$question_type_id = 1 ;
sleep(2);
$question_type_id = Functions::GET("question_type_id");
$question = $exam->find_question_for_exam(2);
$total_of_questions = $question->rowCount();
$question_rows = $question->fetchAll(PDO::FETCH_CLASS,"Exam");
$question_number = 1 ;
foreach ($question_rows as $question_row ):
$question_id_array [] = $question_row->question_id;
$_SESSION["question_id_array"] = $question_id_array;
?>
<div class="form-group col-lg-offset-1" style="border:2px dotted #000000">
<div >
<label class=""> <?php echo $question_number; ?> # </label>
</div>
<div>
<label><?php echo $question_row -> question_text; ?></label>
</div>
</div>
<?php $question_number++; ?>
<?php
// Get answers from Database
$answer = $exam->find_answer_for_question($question_row->question_id);
$answer_rows = $answer->fetchAll(PDO::FETCH_CLASS,"Exam");
$answer_number = 1 ;
foreach ($answer_rows as $answer_row):
?>
<div >
<ul class="col-lg-6">
<li class="list-group-item" style="background-color: #EEE;">
<strong> <?php echo $answer_number; ?> - </strong>
<input type="radio" id="answer" name="answer<?php echo $question_row -> question_id; ?>" value="<?php echo $answer_row -> answer_text; ?>" />
<label><?php echo $answer_row -> answer_text; ?></label>
</li>
</ul>
</div>
<?php $answer_number++; ?>
<?php endforeach ; // End foreach for answers fetch ?>
<?php endforeach ; // End foreach for questions fetch ?>
<?php $_SESSION["total_of_questions"] = $total_of_questions; ?>
<div class="col-lg-offset-11">
<button name="exam-submit-button" id="exam-submit-button" class="btn btn-lg btn-default form-group" >
</button>
</div>
</form>
</div>
</div>
</div><!--row-->
</div> <!--container DIV-->
<?php //require_once ("../templates/footer.php"); ?>
答:您的问题不太清楚,如果您发送运行代码的URL,那会很好。