控件支持属性和样式对照表
这里整理了控件支持的属性和样式,用于方便查阅及对照; 在各个控件的定义中有对其支持属性和样式的详细描述。
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 |
√ |
√ |
√ |
-- |
√ |
√ |
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 |
font-style |
inline-block |
visibility |
border |
border-radius |
div |
√ |
√ |
√ |
√ |
√ |
img |
-- |
-- |
√ |
-- |
-- |
input:button |
√ |
-- |
√ |
√ |
√ |
input:submit |
√ |
-- |
√ |
√ |
√ |
input:segment |
√ |
-- |
√ |
-- |
-- |
input:switch |
-- |
-- |
√ |
-- |
-- |
input:checkbox |
√ |
-- |
√ |
-- |
-- |
input:radio |
√ |
-- |
√ |
-- |
-- |
input:text |
√ |
-- |
√ |
√ |
√ |
input:password |
-- |
-- |
√ |
√ |
√ |
link:a</ |