简体   繁体   English

如何创建类似Apple网站上的按钮?

[英]How can I create buttons like those on the Apple website?

I would like to know how to create buttons like the ones on Apple's main page ? 我想知道如何创建类似Apple 主页上的按钮?

替代文字

Can anyone help me get started or point me in the direction of a tutorial? 谁能帮助我入门或为我指明教程的方向?

Take your pick from these google results Or search on your own for "CSS Sprites". 从这些Google搜索结果中进行选择,或者自行搜索“ CSS Sprites”。 The basic technique is you put all the various states and images in one graphic, and then you use the :hover pseudo slector to change the background-position declaration to move the background image to the coordinates that contain the proper state(s). 基本技术是将所有各种状态和图像放在一个图形中,然后使用:hover伪滑移器更改background-position声明,以将背景图像移动到包含适当状态的坐标。

As an alternative to prodigitalson suggestion (which is the way Apple does it), you could consider using current CSS 3 styles. 作为prodigitalson建议(Apple这样做的一种方法)的替代方法,您可以考虑使用当前的CSS 3样式。

Gradients: http://www.webdesignerwall.com/tutorials/cross-browser-css-gradient/ Text Shadows (for embosed text): http://www.w3.org/Style/Examples/007/text-shadow.en.html Roundedc corners: http://www.css3.info/preview/rounded-border/ 渐变: http : //www.webdesignerwall.com/tutorials/cross-browser-css-gradient/文字阴影(用于浮雕文字): http : //www.w3.org/Style/Examples/007/text-shadow。 en.html Roundedc角落: http//www.css3.info/preview/rounded-border/

etc. 等等

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用javascript从Apple或Google等网站获取数据? - How can I get data off a website like Apple or Google with javascript? 我怎样才能让这个类似苹果的图像序列 animation 在网站中间开始,而不是只在顶部? - How can I get this Apple-like image sequence animation to start in the middle of the website, instead of only on top? 如何创建像 Waven 网站一样的滚动效果? - How can I create scroll effect like Waven Website? 如何将这些按钮的效果更改为 select 以便我可以删除这些按钮? - How can I change the effect of those buttons to the select so I can delete the buttons? 如何创建带有主题的Javascript按钮? - How can I create Javascript Buttons with Themes? Javascript,TailwindCSS - 我如何将这些按钮放在一起 - Javascript, TailwindCSS - How can i place those buttons next to each other 如何通过 Chromium 浏览器禁用网站上的按钮四舍五入? - How can I disable the rounding of buttons on a website through a Chromium browser? 如何创建与大多数网站上一样的通用侧边栏? - How do I create generic sidebars like those found on most websites? 如何创建类似此网站的文字? (css / javascript) - How do I create the text like this website? (css/javascript) 我似乎无法让这两个按钮像这样排列按钮。 我怎样才能做到这一点? - I can't seem to get these two buttons line up buttons like this. How can I do this?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM