Commit 9a705980 authored by winddramon's avatar winddramon

shopitem display fix

parent 23ecfacc
......@@ -415,7 +415,7 @@ background-image: url("../../img/footer_line.gif");
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix {display: inline-table;} /* Hides from IE-mac \*/ * html .clearfix {height: 1%;} .clearfix {display: block;} /* End hide from IE-mac */
#gamecmd input.cmdbutton{
input.cmdbutton{
width:80px;height:25px;margin:2;
}
......@@ -592,7 +592,22 @@ input.range{
border-radius: 50px;
box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.5);
}
/* 商店道具 */
.shoprow{
width:100%;display:flex;height:40px;
}
.shoprow .leftbox{
width:50px;float:left;margin-right:5px;
}
.shoprow .leftbox input{width:50px;}
.shoprow .rightbox{
width:60px;float:right;
}
.shoprow .rightbox input{width:60px;}
.shoprow .rightbox .inputunit{
position:absolute;top:5%;right:25%;color:#aaaaaa;
}
/* EmojiIcon */
.eicon{
filter: grayscale(100%) brightness(133%) blur(0px);
......
......@@ -10,11 +10,18 @@
<!--{loop $itemdata $idata}-->
<!--{if $idata['sid']}-->
<!--{eval $idsid = $idata['sid'];$buynumflag = $shop==1||$shop==2||$shop==6||$shop==7||$shop==8||$shop==10||$shop==11||$shop==12 ? 1 : 0;}-->
<input type="button" class="cmdbutton" value="购买" style="width:40px" onclick="$('command').value='$idsid';<!--{if $buynumflag}-->$('buynum').value=$('buynum{$idsid}').value;<!--{/if}-->postCmd('gamecmd','command.php');this.disabled=true;">
$idata['item_words']/$idata['itmk_words']/$idata['itme']/$idata['itms']<!--{if $idata['itmsk_words']}-->/$idata['itmsk_words']<!--{/if}-->/价:$idata['price']/数:$idata['num']
<!--{if $buynumflag}-->
&nbsp;<input type="number" id="buynum{$idsid}" style="width:35px" value="1" min="1" max="1000">
<!--{/if}-->
<br>
<div class="shoprow">
<div class="leftbox">
<input type="button" class="cmdbutton" value="购买" onclick="$('command').value='$idsid';<!--{if $buynumflag}-->$('buynum').value=$('buynum{$idsid}').value;<!--{/if}-->postCmd('gamecmd','command.php');this.disabled=true;">
</div>
<div <!--{if $buynumflag}-->style="width:185px;"<!--{/if}-->>
$idata['item_words']/$idata['itmk_words']/$idata['itme']/$idata['itms']<!--{if $idata['itmsk_words']}-->/$idata['itmsk_words']<!--{/if}-->/价:$idata['price']/数:$idata['num']
</div>
<div class="rightbox">
<!--{if $buynumflag}-->
<input type="number" id="buynum{$idsid}" style="width:60px" value="1" min="1" max="1000"><span class="inputunit"></span>
<!--{/if}-->
</div>
</div>
<!--{/if}-->
<!--{/loop}-->
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment