简体   繁体   English

CSS无法在IE8中使用

[英]CSS not working in IE8

I am writing signature on a canvas . 我在canvas上写签名。 (Flash canvas) - Using jquery jsSignature plugin. (Flash画布)-使用jquery jsSignature插件。

http://willowsystems.github.io/jSignature/#/about/ http://willowsystems.github.io/jSignature/#/about/

Signature color is black. 签名颜色为黑色。 But the signature is not visible. 但是签名不可见。 Actually it is writing to canvas. 其实是写在画布上。 Canvas background is red. 画布背景为红色。

If I close the browser and reopen the closed browser it is showing the signature. 如果我关闭浏览器并重新打开关闭的浏览器,它将显示签名。 But again if I refresh or go to next page and coming back, again signature does not appear on canvas. 但是,如果再次刷新或转到下一页再返回,则签名再次不会出现在画布上。

I know question is not reasonable and more down-votes can appear, still I am looking for some suggestions. 我知道问题是不合理的,还会出现更多的不赞成票,但我仍在寻找一些建议。

It is working on IE6 and IE9. 它正在IE6和IE9上运行。

Not understanding whether it is CSS issue or JavaScript issue. 不知道是CSS问题还是JavaScript问题。 Please help. 请帮忙。

I can only give below information. 我只能提供以下信息。 I know this is not enough. 我知道这还不够。 I am unable to reproduce this in jsfiddle. 我无法在jsfiddle中重现此内容。 Because lack of time. 因为时间不够。

CSS 的CSS

    #signatureparentAppSig {
        background-color: #red;
        color: black;
        padding : 0px;
    }

Javascript:- Javascript:-

$appSig.jSignature({'UndoButton':true, 'extraActionClass' : 'appSigActions', 'strokeManagingFieldId' : 'app_num_strok', 'background-color':'white', 'sizeRatio' : '4', 'lineWidth' : '2', 'width' : '550', 'height' : '157'})

You can use modernizr and/or normalize to make it display properly (like a block) so it will fit in your design. 您可以使用modernizr和/或规范化使其正确显示(如块),使其适合您的设计。 However, the functionality of the canvas is not usable in a browser that doesnt support it. 但是,画布的功能在不支持它的浏览器中不可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM