为输入标签及其标题属性设置不同的方向 [英] Setting a different direction for the input tag and its title attribute
问题描述
我想将我的HTML文档中的输入标签设置为rtl,将它们的标题属性设置为ltr。是否有可能?
我不相信工具提示文本的显示方向(这是我猜猜你的
HTML规范只是声明浏览器应该在任何地方显示它他们希望的时尚,所以工具提示中文本的方向很可能取决于用户自己的设置,可能在操作系统级别。然而,您可以使用JavaScript来创建您自己的非本地工具提示,然后通过CSS对 can 进行样式设置。
I want to set the input tag in my HTML document to rtl and their title attributes to ltr. Is it possible?
I do not believe the direction in which the text of the tooltip is displayed in (which is what I'm guessing what you meant by their title
attribute) can be dictated through CSS.
The HTML specification simply states that browsers should display it in whatever fashion they wish, so the direction of the text in the tooltip would most likely be dependent on the user's own settings, probably at the Operating System level.
However, you can use JavaScript to create your own, non-native tooltips, which can then be styled through CSS.
这篇关于为输入标签及其标题属性设置不同的方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!