需要让“昵称框”和“邮箱框”并列显示,如图:
源代码:
<div id="comment-author-info">
<p class="comment-form-author">
<label for="author"><?php _e( '昵称', 'begin' ); ?><span class="required"><?php if ($req) echo "*"; ?></span></label>
<input type="text" name="author" id="author" class="commenttext" value="<?php echo $comment_author; ?>" tabindex="2" />
</p>
<p class="comment-form-email">
<label for="email"><?php _e( '邮箱', 'begin' ); ?><span class="required"><?php if ($req) echo "*"; ?></span></label>
<input type="text" name="email" id="email" class="commenttext" value="<?php echo $comment_author_email; ?>" tabindex="3" />
</p>
代码视图:
<div id="comment-author-info" style="display: flex">
↓↓↓↓能帮到你是我的荣幸!如果觉得有帮助的话请在顶部回复里点个有用。让其他人碰到同类问题时少走弯路~
框框短可以调节input的宽度style="width:xxxpx"
搞定了,非常感谢!