Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 JavaScript/JQuery 在我的 PHP/HTML 页面上创建三个按钮,通过按下相应的按钮,我可以设法增加按钮中文本的大小。此外,我想为我网站的其他内容保留此选择。我怎样才能做到这一点 ?
将字体大小值存储在SESSION或中COOKIES。
SESSION
COOKIES
当您移动到另一个页面时,获取该值并再次设置字体大小。
请参阅此示例,使用 jquery demo。