CSS字体大小使用em在不同的页面上不同 [英] CSS font size using em different on different pages

查看:124
本文介绍了CSS字体大小使用em在不同的页面上不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CSS不是我的forte,所以这可能是简单的。我已经设置我的页脚字体大小在样式表使用0.8em,但在不同的页面,它是一个不同的大小。我只是在编辑某人elses工作,他做了一个糟糕的工作,没有关闭标签,所以它有点痛苦。

CSS is not my forte so this might be something simple. I have set my footer font size in a stylesheet using 0.8em but on different pages it is a different size. I'm only editing someone elses work and he did a poor job at not closing tags so its a bit painful.

有一种方法来清除所有字体设置,页脚在所有页面上是否相同?或者这是一个可以用其他方法解决的问题?

Is there a way to clear all font settings so that the footer is the same across all pages? Or is this a problem that can be solved some other way?

为任何帮助欢呼。

推荐答案

我的解决方案基本上是做内联样式来纠正任何问题。使用px而不是em是一个选项,但我们倾向于使用内联样式来保持可访问性而不是最佳实践(任何最佳实践都在窗口之外)。

My solution was basically to do inline styles to correct any problems. Using px rather than em was an option but we preferred to keep accessibility rather than best practice against using inline styles (any best practice was out the window anyway).

这篇关于CSS字体大小使用em在不同的页面上不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆