优化如下代码三个搜索框在上下三行中显示nnbodyn----h3搜索h3n----form-action=search-method=post-class=search_box-style=margin-0-auto;display-flex;justify-content-center;n--------div-style=margin-bottom-8px;-padding-left5px;n------------input-type=text-name=number-class=sear
搜索
优化说明:
-
将display属性从justify-content改为flex-direction,使搜索框垂直排列。
-
将align-items属性添加到搜索框的样式中,使搜索框居中显示。
-
去掉第三个搜索框的底部margin,使三个搜索框之间的间距相等。
-
去掉最后一个搜索框的margin-bottom属性,使搜索框整体与提交按钮对齐。
-
去掉搜索框和提交按钮之间的div容器,使代码更简洁。
原文地址: https://www.cveoy.top/t/topic/rCH 著作权归作者所有。请勿转载和采集!