我在一个div中用php编写了以下代码
<div class="stage_container_four">
<?php
if ($answer == $correct && $refer_question == 0) {
echo $xp_value," ", "Points earned.";
}
else {
echo "Already answered or wrong answer.";
}
?>
</div>
在CSS上,我是这样的:
.stage_container_four {
margin-left:50px;
margin-top:20px;
height: 30px;
float:left !important;
font-family: Oxygen, sans-serif;
font-size:12px;
color:rgba(160,78,0,1.00);
line-height: 30px;
text-indent: 20px;
text-transform:none !important;
background-color:rgba(255,202,0,0.70);
border-radius: 25px;
}
我希望回声文本从左到右都被标识为20px,但是只有左侧被标识为20px,这是预期的响应,但右侧文本结束于背景颜色的边界结束。我现在如何从右边获得20px的边距或标识?
请注意,没有宽度。
谢谢,_oliver
https://stackoverflow.com/questions/41557526
复制相似问题