IHTMLCurrentStyle Interface

本文介绍了IHTMLCurrentStyle接口及其多个版本的发展历程,详细解释了这些接口如何为开发者提供访问HTML元素样式属性的能力。从基本的背景颜色设置到复杂的布局属性调整,这些接口覆盖了诸如字体、边距、边框、位置等多种样式特性。

IHTMLCurrentStyle Interface

Provides the ability to programmatically access the style properties of the element.

IHTMLCurrentStyle Members

acceleratorRetrieves a string that indicates whether the object represents a keyboard shortcut.
backgroundAttachmentRetrieves how the background image is attached to the object within the document.
backgroundColorRetrieves the color behind the content of the object.
backgroundImageRetrieves the background image of the object.
backgroundPositionXRetrieves the x-coordinate of the IHTMLStyle::backgroundPosition property.
backgroundPositionYRetrieves the y-coordinate of the IHTMLStyle::backgroundPosition property.
backgroundRepeatRetrieves how the backgroundImage property of the object is tiled.
behaviorRetrieves the location of the Dynamic HTML (DHTML) behavior.
blockDirectionGets a string value that indicates whether the content in the block element flows from left to right, or from right to left.
borderBottomColorRetrieves the color of the bottom border of the object.
borderBottomStyleRetrieves the style of the bottom border of the object.
borderBottomWidthRetrieves the width of the bottom border of the object.
borderCollapseRetrieves a value that indicates whether the row and cell borders of a table are joined in a single border or detached as in standard HTML.
borderColorRetrieves the border color of the object.
borderLeftColorRetrieves the color of the left border of the object.
borderLeftStyleRetrieves the style of the left border of the object.
borderLeftWidthRetrieves the width of the left border of the object.
borderRightColorRetrieves the color of the right border of the object.
borderRightStyleRetrieves the style of the right border of the object.
borderRightWidthRetrieves the width of the right border of the object.
borderStyleRetrieves the style of the left, right, top, and bottom borders of the object.
borderTopColorRetrieves the color of the top border of the object.
borderTopStyleRetrieves the style of the top border of the object.
borderTopWidthRetrieves the width of the top border of the object.
borderWidthRetrieves the width of the left, right, top, and bottom borders of the object.
bottomRetrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy.
clearRetrieves whether the object allows floating objects on its left side, right side, or both, so that the next text displays past the floating objects.
clipBottomGets the bottom coordinate of the object clipping region.
clipLeftGets the left coordinate of the object clipping region.
clipRightGets the right coordinate of the object clipping region.
clipTopGets the top coordinate of the object clipping region.
colorRetrieves the color of the text of the object.
cursorRetrieves the type of cursor to display as the mouse pointer moves over the object.
directionRetrieves the reading order of the object.
displayRetrieves whether the object is rendered.
fontFamilyRetrieves the name of the font used for text in the object.
fontSizeRetrieves a value that indicates the font size used for text in the object.
fontStyleRetrieves the font style of the object as italic, normal, or oblique.
fontVariantRetrieves whether the text of the object is in small capital letters.
fontWeightGets the numeric weight of the font of the object.
getAttributeRetrieves the value of the specified attribute.
heightRetrieves the height of the object.
imeModeRetrieves the state of an Input Method Editor (IME).
layoutGridCharRetrieves the size of the character grid used for rendering the text content of an element.
layoutGridLineRetrieves the gridline value used for rendering the text content of an element.
layoutGridModeRetrieves whether the text layout grid uses two dimensions.
layoutGridTypeRetrieves the type of grid used for rendering the text content of an element.
leftRetrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy.
letterSpacingRetrieves the amount of additional space between letters in the object.
lineBreakRetrieves line-breaking rules for text in selected languages such as Japanese, Chinese, and Korean.
lineHeightRetrieves the distance between lines in the object.
listStyleImageRetrieves a value that indicates which image to use as a list-item marker for the object.
listStylePositionRetrieves a variable that indicates how the list-item marker is drawn relative to the content of the object.
listStyleTypeRetrieves the predefined type of the line-item marker for the object.
marginRetrieves the width of the top, right, bottom, and left margins of the object.
marginBottomRetrieves the height of the bottom margin of the object.
marginLeftRetrieves the width of the left margin of the object.
marginRightRetrieves the width of the right margin of the object.
marginTopRetrieves the height of the top margin of the object.
overflowRetrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object.
overflowXRetrieves how to manage the content of the object when the content exceeds the width of the object.
overflowYRetrieves how to manage the content of the object when the content exceeds the height of the object.
paddingRetrieves the amount of space to insert between the object and its margin or, if there is a border, between the object and its border.
paddingBottomRetrieves the amount of space to insert between the bottom border of the object and the content.
paddingLeftRetrieves the amount of space to insert between the left border of the object and the content.
paddingRightRetrieves the amount of space to insert between the right border of the object and the content.
paddingTopRetrieves the amount of space to insert between the top border of the object and the content.
pageBreakAfterRetrieves a value indicating whether a page break occurs after the object.
pageBreakBeforeRetrieves a string indicating whether a page break occurs before the object.
positionRetrieves the type of positioning used for the object.
rightRetrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy.
rubyAlignRetrieves the position of the ruby text specified by the rt object.
rubyOverhangRetrieves the position of the ruby text specified by the rt object.
rubyPositionRetrieves the position of the ruby text specified by the rt object.
styleFloatRetrieves on which side of the object the text will flow.
tableLayoutRetrieves a string that indicates whether the table layout is fixed.
textAlignRetrieves whether the text in the object is left-aligned, right-aligned, centered, or justified.
textAutospaceRetrieves the autospacing and narrow space width adjustment of text.
textDecorationRetrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.
textIndentRetrieves the indentation of the first line of text in the object.
textJustifyRetrieves the type of alignment used to justify text in the object.
textJustifyTrimNot implemented.
textKashidaNot implemented.
textTransformRetrieves the rendering of the text in the object.
topRetrieves the position of the object relative to the top of the next positioned object in the document hierarchy.
unicodeBidiRetrieves the level of embedding with respect to the bidirectional algorithm.
verticalAlignRetrieves the vertical alignment of the object.
visibilitySets or retrieves whether the content of the object is displayed.
widthRetrieves the width of the object.
wordBreakRetrieves line-breaking behavior within words, particularly where multiple languages appear in the object.
zIndexRetrieves the stacking order of positioned objects.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesMshtml.h, Mshtml.idl
Minimum availabilityInternet Explorer 5
Minimum operating systemsWindows 95, Windows NT 4.0, Windows CE 4.0

See Also

 

 

IHTMLCurrentStyle2 Interface

Enables you to programmatically access the style properties of an element.

IHTMLCurrentStyle2 Members

filterRetrieves the filter or collection of filters applied to the object.
hasLayoutGets a value that indicates whether the object has layout.
isBlockGets a value that indicates whether the object is a block-level object.
layoutFlowRetrieves the direction and flow of the content in the object.
scrollbar3dLightColorRetrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
scrollbarArrowColorRetrieves the color of the arrow elements of a scroll arrow.
scrollbarBaseColorRetrieves the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.
scrollbarDarkShadowColorRetrieves the color of the gutter of a scroll bar.
scrollbarFaceColorRetrieves the color of the scroll box and scroll arrows of a scroll bar.
scrollbarHighlightColorRetrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
scrollbarShadowColorRetrieves the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.
scrollbarTrackColorRetrieves the color of the track element of a scroll bar.
textAlignLastRetrieves how to align the last line or only line of text in the object.
textKashidaSpaceRetrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.
textUnderlinePositionRetrieves the position of the underline decoration that is set through the IHTMLStyle::textDecoration property of the object.
wordWrapRetrieves whether to break words when the content exceeds the boundaries of its container.
writingModeRetrieves the direction and flow of the content in the object.
zoomRetrieves the magnification scale of the object.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesmshtml.h, mshtml.idl
Minimum availabilityInternet Explorer 5.5
Minimum operating systemsWindows 95, Windows NT 4.0, Windows CE 4.0

See Also

 

 

 

IHTMLCurrentStyle3 Interface

Extends the IHTMLCurrentStyle2 interface.

IHTMLCurrentStyle3 Members

minHeightRetrieves the minimum height for an element.
textOverflowSets or retrieves a value that indicates whether to render ellipses(...) to indicate text overflow.
whiteSpaceRetrieves a value that indicates whether lines are automatically broken inside the object.
wordSpacingRetrieves the amount of additional space between words in the object.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesmshtml.h, mshtml.idl
Minimum availabilityInternet Explorer 6
Minimum operating systemsWindows 98, Windows NT 4.0, Windows CE 4.0

See Also

 

 

 

 

IHTMLCurrentStyle4 Interface

Extends the IHTMLCurrentStyle3 interface.

IHTMLCurrentStyle4 Members

maxHeightRetrieves the maximum height for an element.
maxWidthRetrieves the maximum width for an element.
minWidthRetrieves the minimum width for an element.
msInterpolationModeRetrieves the interpolation (resampling) method used to stretch images.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesmshtml.h, mshtml.idl
Minimum availabilityInternet Explorer 7
Minimum operating systemsWindows XP SP2

See Also

 

 

 

IHTMLCurrentStyle5 Interface

 

Extends the IHTMLCurrentStyle4 interface with Cascading Style Sheets, Level 2.1 (CSS2.1)  World Wide Web link properties for Internet Explorer 8.

IHTMLCurrentStyle5 Members

borderSpacingSets or retrieves the distance between the borders of adjoining cells in a table.
boxSizingRetrieves the box model to use for object sizing.
captionSideRetrieves where the caption of a table is located.
contentRetrieves generated content to insert before or after an element.
counterIncrementRetrieves a list of counters to increment.
counterResetRetrieves a list of counters to create or reset to zero.
emptyCellsDetermines whether to show or hide a cell without content.
msBlockProgressionRetrieves the block progression and layout orientation.
orphansRetrieves the minimum number of lines of a paragraph that must appear at the bottom of a page.
outlineRetrieves the color, style, and width of the outline frame.
outlineColorRetrieves the color of the outline frame.
outlineStyleRetrieves the style of the outline frame.
outlineWidthRetrieves the width of the outline frame.
pageBreakInsideRetrieves a string indicating whether a page break is allowed to occur inside the object.
quotesRetrieves the pairs of strings to be used as quotes in generated content.
widowsRetrieves the minimum number of lines of a paragraph that must appear at the top of a page.

Remarks

For a full list of Cascading Style Sheets (CSS) modules, see IHTMLStyle6.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesmshtml.h, mshtml.idl
Minimum availabilityInternet Explorer 8
Minimum operating systemsWindows XP SP2
代码转载自:https://pan.quark.cn/s/8ce4326d996e 对于在 CentOS 7 系统中修改网卡配置文件后无法使设置生效的情况,经过实践验证,可以通过使用 nmcli 命令来进行调整。完成修改之后,需要重新启动虚拟机以使更改生效,这样操作流程即告完成。如果设置仍然无法生效,则表明虚拟机在启动过程中所获取的 IP 地址配置并非针对 eth0,此时可以对其它网卡的配置文件进行修改或将其移除。在 CentOS 7 系统中,网络配置的管理机制与早期版本存在差异,主要体现为采用了 Network Manager 服务来负责网络接口的管理。在某些情形下,尽管修改了 `/etc/sysconfig/network-scripts` 目录下的 `ifcfg-eth0` 文件,但网络配置却未能即时生效。此类问题的发生通常源于 CentOS 7 采用了不同于以往的配置读取方法。接下来将具体阐述如何借助 nmcli 命令来处理这一挑战。 以 root 用户身份登录系统并打开终端界面。nmcli 是 Network Manager 提供的命令行界面工具,它支持在命令行环境下执行网络连接的建立、编辑、查询及管理任务。针对修改 eth0 网卡配置的需求,可以遵循以下步骤进行操作: 1. 导航至 `/etc/sysconfig/network-scripts` 目录: ``` cd /etc/sysconfig/network-scripts ``` 2. 检查该目录内是否存在 `ifcfg-eth0.bak` 文件,该备份文件可能是先前调整配置时遗留下来的,若存在可能造成冲突。若发现该文件,可以选择将其删除: ``` [root@localhost netw...
代码转载自:https://pan.quark.cn/s/46fd08fb879c 网管教程 从入门到精通软件篇 ★一。★详尽的xp修复控制台指令及其应用!!! 放入xp(2000)的光盘,安装时选择R,执行修复! Windows XP(涵盖 Windows 2000)的控制台指令是在系统遭遇某些意外状况时的一种极具效用的诊断、检测以及恢复系统功能的工具。笔者确实一直期望能够将这方面的指令进行归纳,此次由老范辛苦整理了这份极具价值的秘籍。 Bootcfg bootcfg 命令用于启动配置与故障恢复(对大多数计算机而言,即 boot.ini 文件)。 带有特定参数的 bootcfg 命令仅在运用故障恢复控制台时方可使用。能够在命令行界面下运用带有不同参数的 bootcfg 命令。 用法: bootcfg /default 设定默认引导选项。 bootcfg /add 向引导清单中增添 Windows 安装。 bootcfg /rebuild 重复整个 Windows 安装流程并让用户选择需添加的项目。 注意:运用 bootcfg /rebuild 之前,应先借助 bootcfg /copy 命令备份 boot.ini 文件。 bootcfg /scan 探查用于 Windows 安装的全部磁盘并展示结果。 注意:这些结果被静态存储,并用于当前会话。若在当前会话期间磁盘配置发生变动,为获取更新的探查结果,必须先重启计算机,然后再次探查磁盘。 bootcfg /list 列示引导清单中已有的项目。 bootcfg /disableredirect 在启动引导程序中禁用重定向。 bootcfg /redirect [ PortBaudRrate] |[ useBio...
代码下载链接: https://pan.quark.cn/s/fc524f791b68 AA制程,即Active Alignment,被理解为主动对准,是一种用于确定零部件装配中相对位置的方法。在摄像头封装阶段,涉及图像传感器、镜座、马达、镜头、线路板等多个部件的重复组装,而传统的封装设备如CSP及COB等,均是依据设备设定的参数进行零部件的移动装配,因而零部件的叠加误差会逐渐增大,最终在摄像头上表现为拍照最清晰的位置可能偏离画面中心、四边清晰度不均等现象。伴随智能手机和其他高端电子产品的普及,摄像头模组的性能正日益受到重视。高分辨率、卓越的低光表现以及稳定视频输出是现代用户所期望的。在摄像头模组的制造环节,各部件的精准定位对成像质量具有决定性作用。因此,一种名为“AA制程”(Active Alignment)的前沿技术被开发出来,成为摄像头精密对准的核心技术。 AA制程,即Active Alignment,是一种在摄像头封装过程中应用的主动对准方法。该方法在多个组件装配阶段发挥作用,涵盖图像传感器、镜座、马达、镜头和线路板等部件。传统的封装方式,例如CSP(Chip Scale Package)和COB(Chip On Board),依赖于设备预设的参数进行组装,但随着组件数量的增加,误差也会累积,最终影响摄像头的表现。例如在成像质量上可能出现中心位置偏移、四角清晰度不一致等问题。 AA制程技术的核心在于实时监测与主动调整。在组装过程中,它借助先进的检测设备持续监控半成品的状态,并根据实时信息对组装部件进行精确修正,从而显著降低装配误差。通过这种技术,能够确保摄像头模组中各组件的相对位置准确无误,从而使得最终的成像效果更加稳定,特别是在中心区域和四角的清晰度上...
内容概要:本文介绍了一套基于Matlab实现的光子晶体90度弯曲波导的二维时域有限差分法(2D FDTD)仿真代码,旨在通过数值模拟手段深入研究光子晶体波导中的光传播特性。该资源聚焦于电磁场与光子学领域的仿真技术应用,系统实现了FDTD算法在复杂介质结构中的建模过程,涵盖空间网格剖分、时间步进迭代、完美匹配层(UPML)边界条件处理、总场散射场(TFSF)激励源设置、介电常数分布定义及电磁场演化可视化等核心模块,能够有效分析光在90度弯曲波导中的传输效率、模式分布与反射损耗等关键性能指标。; 适合人群:具备电磁场理论基础和Matlab编程能力的研究生、科研人员以及从事光子晶体器件设计与仿真的工程技术人员。; 使用场景及目标:①用于教学演示FDTD方法的基本原理与算法流程,帮助理解麦克斯韦方程的离散化求解过程;②支撑科研工作中对光子晶体弯曲波导结构的传输特性进行仿真分析与性能优化;③作为开发更复杂光子集成器件(如分束器、滤波器)数值仿真工具的基础框架; 阅读建议:建议使用者结合经典FDTD教材(如Taflove著作)深入理解算法理论,并在Matlab环境中逐模块调试代码,重点关注电场与磁场的交替更新过程、UPML吸收边界的设计实现以及TFSF源的引入方式,从而全面提升对时域电磁仿真机制的掌握与应用能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值