我使用Downloadify Example将文件保存在磁盘上,我确实喜欢这个link,但我想将按钮图像更改为html代码的普通按钮,如下所示:
<input type='button' value='save' id='save'>我不能修改这个,有人知道怎么解决这个问题吗?
发布于 2014-05-02 12:50:54
var exportButton = $( "#ExportButton" );
var exportButtonWidth = exportButton.outerWidth();
var exportButtonHeight = exportButton.outerHeight();
var flashObject = $( '[name^="downloadify"]' );
// Set the Flash object to the same size as my button
flashObject.css( { width: exportButtonWidth, height: exportButtonHeight } );
var exportButtonPosition = flashObject.position();
// Set my button directly underneath the Flash object
exportButton.css( { top: exportButtonPosition.top, left: exportButtonPosition.left, position: 'absolute', 'z-index': -1 } );抄送:randyburden
https://stackoverflow.com/questions/21425232
复制相似问题