JavaScript后退和前进按钮,系统如何知道要加载哪个图像? [英] JavaScript back and forward buttons, how does the system know what image to load?

查看:173
本文介绍了JavaScript后退和前进按钮,系统如何知道要加载哪个图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


SplitPage模板的SplitPage.html显示一个按钮,返回一页,其中包含以下行:


< ; button disabled class =" win-backbutton"咏叹调标签= QUOT;返回]>< /按钮>


和应用程序显示一个而左箭头图像该按钮


我查看了所有的css文件,看看'.win-backbutton'选择器规则是否指定了要加载的箭头的图像,但事实并非如此。所以我的问题是,系统如何知道显示左箭头图像?


我问,因为在我的应用程序中我想使用"右箭头"按钮,但我需要了解在这种情况下的工作原理,以便能够知道代码中要更改的内容。


 


谢谢


&NBSP;

解决方案

您好马莱娜,


如果您打开Default.htm,您将看到该按钮。


 

 
< button id = "家用" = <跨度风格=" 颜色:#A31515;">"赢命令" > ;
< span class = " win-commandicon win-large" > ;&安培;#xE10F;< /跨度><跨度的 = <跨度风格= "颜色:#A31515;">"赢标签" < /跨度>>家庭和LT; /跨度>
< / button>


Hi,

The SplitPage template's SplitPage.html displays a button to go back one page with the following line:

<button disabled class="win-backbutton" aria-label="Back"></button>

and the application displays a while left arrow image for that button.

I looked at all the css files to see if the '.win-backbutton' selector rule specify the image of the arrow to load, but it doesn't. So my question is, how does the system know to show the left arrow image?

I am asking because in my application I want to use a "right arrow" button, but I need to understand how things work in this case to be able to know what to change in the code.

 

thanks

 

解决方案

Hi Malena,

If you open Default.htm you will see the button.

 

            <button id="home" class="win-command">
                <span class="win-commandicon win-large">&#xE10F;</span><span class="win-label">Home</span>
            </button>


这篇关于JavaScript后退和前进按钮,系统如何知道要加载哪个图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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