gpt4 book ai didi

HTML - 如何让我的文字出现在我的图标旁边?

转载 作者:太空宇宙 更新时间:2023-11-03 19:55:18 26 4
gpt4 key购买 nike

我很难在图标旁边添加一些文本。这是我当前的代码:

<html>
<head> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</head>
<body>

<i class="pull-left glyphicon glyphicon-envelope">
<h3>some email address</h3> </i>

<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/E|@
heAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWr|@
WCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX|@
4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>

</body>
</html>

结果can be seen here here

如您所见,电子邮件地址位于下一行,而不是信封图标旁边。我怎样才能并排放置?

谢谢

jsfiddle:http://jsfiddle.net/1dov5ea4/2/

最佳答案

我试过这个:

<h3>
<i class="pull-left glyphicon glyphicon-envelope"></i>
some email address
</h3>

<i> <h3> 内的标签标签

关于HTML - 如何让我的文字出现在我的图标旁边?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51858151/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com