开发者

Setting a different direction for the input tag and its title attribute

I want to se开发者_StackOverflowt 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜