Jquery mobile 如何在jquerymobile中创建一行中的三个“like”图像按钮?

Jquery mobile 如何在jquerymobile中创建一行中的三个“like”图像按钮?,jquery-mobile,Jquery Mobile,在jquery mobile中,如何在一行中创建三个类似的图像按钮 我试过这样做 <body> <a class="ui-icon-google" href="#" data-role="ui-li-aside" data-icon="google" data-theme="a"/> <a class="ui-icon-facebook" href="#" data-role="ui-li-aside" data-icon="facebook" da

在jquery mobile中,如何在一行中创建三个类似的图像按钮

我试过这样做

<body>
    <a class="ui-icon-google" href="#" data-role="ui-li-aside" data-icon="google" data-theme="a"/>
    <a class="ui-icon-facebook" href="#" data-role="ui-li-aside" data-icon="facebook" data-theme="a"/a>
    <a class="ui-icon-twitter" href="#" data-role="ui-li-aside" data-icon="twitte" data-theme="a"/a>
</body>

但这是一个又一个的错误,我试图把openid的图标放在stackoverflow上。

你首先需要图像,然后你可以将图像链接到你的位置。

制作:


只需创建一个内联按钮组:

<div data-role="controlgroup" data-type="horizontal" >
    <a href="index.html" data-role="button" data-icon="arrow-u">Up</a>
    <a href="index.html" data-role="button" data-icon="arrow-d">Down</a>
    <a href="index.html" data-role="button" data-icon="delete">Delete</a>
</div>

你想怎么做就怎么做。看看link,在这里您将发现更多jqmgui元素的示例。下面是一个示例:

使图像内联或imline块元素。将以下样式添加到.ui图标google、.ui图标facebook和.ui图标twitter:

display: inline;
或者


我有像css一样在同一个文件夹中的图像,它会显示,但按钮在另三行一列的下面,我想被分配一行三列
<div data-role="controlgroup" data-type="horizontal" >
    <a href="index.html" data-role="button" data-icon="arrow-u">Up</a>
    <a href="index.html" data-role="button" data-icon="arrow-d">Down</a>
    <a href="index.html" data-role="button" data-icon="delete">Delete</a>
</div>
display: inline;
display: inline-block;