Mac OS X 上的网页控件
看起来像
例如,我希望普通文本和控件的字体大小和字体系列相同。怎么做呢?
如果您有解决方案,请尝试基于以下示例: http://jsfiddle.net/uff8q/2 /
UPD 我说的是 Mac OS X(我尝试过 Chrome 和 Safari)
It looks like controls like <input>
<select>
and <button>
cant' be affected by CSS properties such as font-size (and some others). However, the font-size is actually could be different I saw, but how to control it?
For instance I want to have the font-size and font-family to be the same for normal text and for controls. How to do that?
If you have a solution, try to base it on this example: http://jsfiddle.net/uff8q/2/
UPD I'm talking about Mac OS X (I tried Chrome and Safari)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于浏览器。
项目可以在任何浏览器中设置完整样式。您可以更改字体、大小和颜色。
更新:以下是您可以使用 WebKit 获得的三种尺寸:
和一张图片:
This depends on the browser.
<input>
items can be full styled in any browser. You can change the font, size and colours.<select>
items can be fully styled in Firefox, but not Safari/Chrome. You cannot change the font very much — there are only three sizes.Update: here are the three sizes you can get with WebKit:
And a picture: