`

how ext maintains its cross-browser compatibility

阅读更多

 

Spacer image

Before we proceed any further, we should provide Ext with something it needs—a

spacer image. Ext needs a 1 pixel by 1 pixel, transparent, GIF image to stretch in

different ways, giving a fixed width to its widgets. We need to set the location of this

spacer image using the following line:

Ext.onReady(function(){

Ext.BLANK_IMAGE_URL = 'images/s.gif';

});

You're probably wondering why we need a spacer image at all. The user interface of

Ext is created using CSS, but the CSS needs underlying HTML elements to style so

that it can create the look and feel of Ext components. The one HTML element that

is an exact, predictable size across all browsers is an image. So an image is used

to define how an Ext component is drawn. This is a part of how Ext maintains its

cross-browser compatibility.

分享到:
评论

相关推荐

    More Math Into Latex

    The text maintains its user-friendly, example-based, visual approach, gently easing readers into the secrets of Latex with The Short Course. Then it introduces basic ideas through sample articles and...

    Concepts.of.Programming.Languages.12921

    The Eleventh Edition maintains an up-to-date discussion on the topic with the removal of outdated languages such as Ada and Fortran. The addition of relevant new topics and examples such as reflection...

    Ex vivo flow perfusion maintains fat flap long-term viability: a novel model for large volume engineered tissue research

    在细胞与组织工程领域,大体积肌肉组织的构建是一个长期存在的技术挑战。由于大体积组织的内部无法通过传统的方法获得充足的血液供应,因此如何在体外为这些组织提供有效的灌注成为科研人员关注的焦点。...

    IDE接口协议(ATA-3)

    system integrators, software suppliers, and suppliers of intelligent storage devices. <br>This standard maintains a high degree of compatibility with the AT Attachment Interface with Extensions ...

    Building Blockchain Projects -Packt Publishing((2017).pdf )

    This book will teach you what Blockchain is, how it maintains data integrity, and how to create real- world Blockchain projects using Ethereum. With interesting real-world projects, you will know ...

    Senfore_DragDrop_v4.1

    version of Delphi and C++ Builder has its own package; DragDropD6.dpk for Delphi 6, DragDropD5.dpk for Delphi 5, DragDropC5.bpk for C++ Builder 5, etc. 4) Add the Drag and Drop Component Suite ...

    Building Blockchain Projects_Develop Real-Packt Publishing(2017)

    This book will teach you what Blockchain is, how it maintains data integrity, and how to create real- world Blockchain projects using Ethereum. With interesting real-world projects, you will know ...

    java_ssm基于bs模式的医院在线挂号预约系统的设计与实现jsp毕业论文.doc

    In terms of database management, MySQL is employed due to its reliability, scalability, and compatibility with Java applications. It stores essential data like user profiles, doctor schedules, ...

    Raize.Components-v6.1.12 FullSource(2009-XE8) Part1/2

    tree maintains its current view. RzSpnEdt.pas * Fixed issue where ParentColor property in TRzSpinner and TRzDBSpinner was not getting streamed correctly to form files. RzTabs.pas * Fixed issue ...

    Raize.Components-v6.1.12 FullSource(2009-XE8) Part2/2

    tree maintains its current view. RzSpnEdt.pas * Fixed issue where ParentColor property in TRzSpinner and TRzDBSpinner was not getting streamed correctly to form files. RzTabs.pas * Fixed issue ...

    impala-2.8

    - **Upgrade Process**: Follow the recommended upgrade path provided by the Impala documentation to ensure compatibility and minimize downtime. #### Starting Impala - **Starting Impala from the ...

    SourceInSight

    Source Insight parses your source code and maintains its own database of symbolic information dynamically while you work, and presents useful contextual information to you automatically. Not only ...

    Mastering TypeScript

    The TypeScript compiler and language has brought JavaScript development up to the enterprise level, yet still maintains backward compatibility with existing JavaScript browsers and libraries. ...

    SetupEMPB85xx.exe

    In all cases the EM8500 maintains its fast start-up capability that depends only on the harvester conditions and the STS capacitor value. A USB connection to an external power source is available on ...

    range-free localization beyond connectivity

    - **Neighborhood Ordering:** Each node in the network maintains a list of its 1-hop neighbors, ordered based on a specific criterion (e.g., signal strength, hop count, etc.). This ordering serves as a...

    Linux device driver 3nd(EN)

    - The book provides a detailed overview of the Linux kernel architecture, including its design principles, internal structures, and the mechanisms used for managing resources. - It explains the role...

    PCI Express Technology 3.0

    Each new generation of PCI Express adds more features, capabilities and bandwidth, which maintains its popularity as a device interconnect. MindShare's books take the hard work out of deciphering ...

    Enhanced Host Controller Interface Specification for Universal Serial Bus

    - **Queue Head:** Represents the entry point for a transfer and contains information about the endpoint and its characteristics. ##### Root Hub Emulation EHCI controllers emulate the root hub ...

Global site tag (gtag.js) - Google Analytics