奇怪的符号出现在Android的android - phonegap应用程序的HTML [英] Strange symbol appearing in HTML on android - phonegap app

查看:145
本文介绍了奇怪的符号出现在Android的android - phonegap应用程序的HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个包含主干,phonegap和css外套的移动应用程序( http://topcoat.io/)。

I'm creating a mobile app with backbone, phonegap and for css topcoat (http://topcoat.io/).

在我的Android手机上查看应用程式时,我遇到了一个奇怪的问题。 Im使用android版本2.3.3。在它的一边的邮件符号出现,似乎在使用p和span标签。

I have a strange problem when viewing the app on my android phone. Im using android version 2.3.3. A mail symbol on it's side appears, seemingly whereever p and span tags are used.

这是代码(在这种情况下它进入else):

Here is the code (in this case it goes into the else):

<ul class="topcoat-list list">
<% _.each(players, function(player) { %>
    <li class="topcoat-list__item">

        <%
        if(checkbox){
        %>

        <label class="topcoat-radio-button">
          <input type="radio" name='player_id' value="<%= player.id %>" />
          <div class="topcoat-radio-button__checkmark"></div>
            <div class="player-details">
                <span><%= player.name %></span>
                <span><%= player.position %></span>
           </div>   
        </label>
        <%
        }
        else{
        %>
            <div class="player-details">
                <span><%= player.name %></span>
                <span><%= player.position %></span>
            </div>   
        <%
        }
        %>
            <div class="player-more">
                <a target="_blank" href="http://www.premierleague.com/<%= player.link %>">More</a>
            </div>            



    </li>
<% }); %>
</ul>

我已经通过topcoat.io css,但它没有为span或p标签设置任何css ...任何想法可能产生这个奇怪的符号?

I have gone through topcoat.io css but it doesn't set any css for span or p tags...Any ideas what could be producing this weird symbol?

推荐答案

这是一个编码问题。生成此HTML的代码在哪里。它可能是导致它的换行代码。删除换行符。

This is an encode issues. Where is the code that generates this HTML. It could be the linebreak code causing it. Remove the line break.

<li class="topcoat-list__item">
        <div class="player-details">
            <span>Tim Krul</span><span>Goalkeeper</span>
        </div>   
        <div class="player-more">
            <a target="_blank" href="http://www.premierleague.com//en-gb/players/profile.overview.html/tim-krul">More</a>
        </div>              
</li>

这篇关于奇怪的符号出现在Android的android - phonegap应用程序的HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆