EMP界面开发规范-界面标签

本文档详细介绍了EMP界面开发中各种控件(如Link、B、Strong、Body、Div、Form等)的支持属性、样式、事件及使用示例。包括属性如enable、href、linebreakmode等,样式如background-color、font-size、filter等,以及事件如onclick等。还特别提到了 Lua 中对这些属性和样式的操作,以及在不同平台上的表现和注意事项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

控件支持属性和样式对照表

这里整理了控件支持的属性和样式,用于方便查阅及对照; 在各个控件的定义中有对其支持属性和样式的详细描述。

1 控件支持属性对照表


下面的表格为具体控件对属性的支持情况:

proper属性 name value text tagName hide focus enable src checked href
div -- -- -- -- -- --
form -- -- -- -- -- -- --
img -- -- -- -- --
input:button -- -- -- -- --
input:submit -- -- -- -- --
input:password -- -- -- --
input:text -- -- -- --
input:segment -- -- --
input:switch -- -- -- --
input:checkbox -- -- --
input:radio -- -- --
link -- -- --
select -- -- -- -- --
select:option -- -- -- -- -- --
text:i -- -- -- -- --
text:em -- -- -- -- --
text:strong -- -- -- -- --
text:b -- -- -- -- --
text:label -- -- -- -- --
table:table -- -- -- -- -- -- --
table:tr -- -- -- -- -- --
table:th -- -- -- -- -- -- --
table:td -- -- -- -- -- -- --
proper属性 align valign selected border separator loading failed delay titleimg cornerradius
div -- -- -- -- -- -- --
img -- -- -- -- -- -- -- --
input:button -- -- -- -- -- -- -- --
input:submit -- -- -- -- -- -- -- --
input:password -- -- -- -- -- -- -- -- --
input:text -- -- -- -- -- -- -- -- --
input:segment -- -- -- -- -- -- -- --
input:checkbox -- -- -- -- -- -- -- -- --
input:radio -- -- -- -- -- -- -- -- --
select -- -- -- -- -- -- -- -- --
select:option -- -- -- -- -- -- -- -- --
table:table -- -- -- -- -- -- -- --
table:tr -- -- -- -- -- -- -- -- --
table:th -- -- -- -- -- -- -- --
table:td -- -- -- -- -- -- -- --
其他控件 -- -- -- -- -- -- -- -- -- --
proper属性 leftimg rightimg leftimgmode rightimgmode clearmode style hold returnkeytype returnkeyaction encryptmode substitute isorder
input:button -- -- -- -- -- -- -- -- -- --
input:submit -- -- -- -- -- -- -- -- -- --
input:password -- -- --
input:text 仅ios -- -- --
其他控件 -- -- -- -- -- -- -- -- -- -- -- --
proper属性 numlines linebreakmode shadowcolor shadowoffset ontintcolor offtintcolor thumbtintcolor loop velocity adjustsfontsize minfontsize
input:segment -- -- -- -- -- -- -- -- -- --
input:switch -- -- -- -- -- -- -- --
input:checkbox -- -- -- -- -- -- --
input:radio -- -- -- -- -- -- --
link -- -- -- -- -- -- -- -- -- --
text:i -- -- --
text:em -- -- --
text:strong -- -- --
text:b -- -- --
text:label -- -- --
其他控件 -- -- -- -- -- -- -- -- -- -- --

2 控件支持样式对照表


下面的表格为具体控件对样式的支持情况:

style color left right top bottom width height font-size font-weight
div
img -- -- --
input:button
input:submit
input:segment --
input:switch -- -- --
input:checkbox
input:radio
input:text
input:password -- --
link:a
select
select:option -- -- -- -- -- --
text:i
text:em
text:strong --
text:b --
text:label
table:table
table:tr -- -- -- -- --
table:td -- -- -- --
table:th -- -- -- --
style display position filter text-align background-color background-image
div --
img 仅支持透明度 -- -- --
input:button --
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值