我应该如何在旁边添加此箭头?

时间:2017-03-13 18:04:30

标签: css html5 css3

$(document).ready(function onButtonClick() {
let serviceUuid = 'EDF094632432432D9C585014E22E7073';
navigator.bluetooth.requestDevice({filters: [{services: [serviceUuid]}]})
.then(device => {
return device.gatt.connect();
})
.then(server => {
return server.getPrimaryService(serviceUuid);
})  
})

如何把箭放在我们身边?

aroow

navigation

2 个答案:

答案 0 :(得分:0)

您可以将它们放在无序列表中,无需设置宽度和高度,只需设置填充,如果您希望它们的行为相同并排列;如果你想使用伪,那么如果你知道它们永远不会换行,我建议使用line-height。

尝试这样的事情并适应:



.inline-list {
margin: 0;
padding: 0;
list-style: none;
}

.inline-list li {
display: inline-block;
padding: 1em 2em;
background: aqua;
}

<ul class="inline-list">
<li>About Us</li>
<li>></li>
</ul>
&#13;
&#13;
&#13;

答案 1 :(得分:0)

尝试这种方法: 您可以根据需要设置箭头的位置。

&#13;
&#13;
Observable.from()
&#13;
Observable
&#13;
&#13;
&#13;