html52.com
我爱小程序-开发者交流社区

php页面如何让两个输入框并列显示?

需要让“昵称框”和“邮箱框”并列显示,如图:

需要让“昵称框”和“邮箱框”并列显示,如图:源代码:

源代码:

	<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>

代码视图:



代码视图:

网友回复

Admin²⁰²⁰:
<div id="comment-author-info" style="display: flex">

↓↓↓↓能帮到你是我的荣幸!如果觉得有帮助的话请在顶部回复里点个有用。让其他人碰到同类问题时少走弯路~

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付