- jQuery for Designers Beginner's Guide Second Edition
- Natalie MacLees
- 206字
- 2021-09-03 10:08:34
Simple custom tooltips
Browsers automatically create tooltips when you include the title
attribute on your HTML element. Titles are usually used on links and images, but they can be added to nearly every type of HTML element. When your site visitors hover their mouse cursor over an element with a title
attribute or move focus to the item by tabbing to it using the keyboard, the tooltip will appear—usually as a small yellow box that appears to be floating over the page.
Tooltips are a great way to add a little additional information to your page. Screen reader software reads out tooltip text for site visitors with disabilities who are using assistive technology, making them useful for enhancing accessibility. Furthermore, the title
attributes on images and links can help search engines index your content more effectively.
I hope I've convinced you that the title
attributes are great for enhancing both the usability and the accessibility of your site. The only problem with tooltips is that they can't be customized in any way. Each browser has its own style of tooltip and that style is not accessible via CSS. This is fine, but sometimes, it's nice to have more control over the appearance of tooltips.
- WildFly:New Features
- Windows系統管理與服務配置
- 趣學Python算法100例
- 3D少兒游戲編程(原書第2版)
- 單片機應用與調試項目教程(C語言版)
- 自然語言處理Python進階
- C#實踐教程(第2版)
- 深度學習:Java語言實現
- SSM開發實戰教程(Spring+Spring MVC+MyBatis)
- Python深度學習原理、算法與案例
- Building Dynamics CRM 2015 Dashboards with Power BI
- Java程序設計基礎(第6版)
- WildFly Cookbook
- 你好!Java
- Implementing Domain:Specific Languages with Xtext and Xtend