html - 在引导程序中定位输入按钮和文本
问题描述
我会在 html 中定位表单输入(按钮、文本等)。
我想左对齐按钮并下拉导航栏中的文本。但我不知道该怎么做。我使用引导程序 3。
代码:
html,body{
background-color: #F8F8F8;
}
.navbar{
background-color: white;
border: none;
height: 100px;
margin-top: 15px;
margin-left: 100px;
margin-right: 100px;
}
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
<title>Moda Rüzgarı</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<div class="navbar navbar-dark bg-white mr-auto" role="navigation">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#menu"><span class="sr-only"></span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
<a class="navbar-brand" href="index.php"><img src="modaruzgari.png" height="75"></a>
<div class="navbar-collapse collapse" id="menu">
<div class="input-group col-xs-5 col-lg-4">
<input type="text" class="form-control">
<span class="input-group-btn"><button class="btn btn-default" type="button">Ara</button></span>
</div>
<span class="input-group-btn">
<button class="btn btn-default" type="button" style="width: 50px;height: 50px;font-size: 13px;text-align: center;background: white;border: none;"><img src="girisyap.png" height="25">Giriş Yap</button>
<button class="btn btn-default" type="button" style="width: 50px;height: 50px;font-size: 13px;text-align: center;background: white;border: none;"><img src="sepetim.png" height="25">Sepetim</button>
</span>
</div>
</div>
如果您打开片段,请打开整页。
我需要你的帮助。
感谢您的回答。
解决方案
推荐阅读
- python-requests - 无法从 sourcePylancereportMissingModuleSource(模块)请求中解析导入“请求”
- node.js - 我们可以使用名为 _MY_SECRET 的环境变量吗?
- sql - 在 SQL Server 2014 中将 Julian/Ordinal 日期转换为日期
- .net - 为什么隐式地将双精度转换为 IPAddress 会反转字节顺序?
- python - 此类中的描述符发生了什么?
- java - Maven 不是从控制台生成的
- javascript - 如何使用 JavaScript 在 JSON API 中的对象内循环多个数组
- vue.js - 使用 Vue js 的错误 401(未经授权)Keycloak
- php - Php laravel 如何在一个条件之外获得唯一值
- python-requests - 我使用 Foursquare 收到错误“组”