html中role=navigation是什么意思,play the role in 与play the role of有
网友回答
HTML5的标签属性,可以用于标识一个普通的标签,使之语义化,方便浏览器对其具体功能进行识别。
例如div容器制作的导航栏,加上role="navigation",就可以让浏览器知晓这是一个导航容器而不是一个普通的问容器,从而在面对一些特殊人群的时候可以做出正确的反应(例如盲人)……
-来自知乎(答Blueve)
网友回答
play the role in与play the role of有区别,它们的区别为:意思不同、用法来不同、侧重点不同。
一、意思不同
1.play the role in意思:在...中扮演角色。
2.play the role of意思:扮演...的角色。
二、用法不同
1.play the role in用法:作“作用,自职责”解时,后面常接介词“in〔of,for〕+名词或动名词”。role也可作戏剧、电影等中的“角色”解,表示“……的角色”可用“the role of ...”。
2.play the role of用法:基本意思是指为了消遣和娱乐而进行身体的或精神的活动,即“玩,玩耍”,也可指与某人进行一场比赛,即“参加比赛”。
三、侧重点不同
1.play the role in侧重点:play the role in侧重后面加范围或什么地方。
2.play the role of侧重点:play the role of侧重后面加角色的具体内容。