我有一些CSS按钮在悬停时更大.我还将文本设置得更大但是我想将文本向下移动几个px而不会弄乱使用的背景图像.
救命?
我的代码看起来像这样:
<div id="nav">
<a href="index.php">Home</a>
<a id="headrush">Beer Bongs</a>
<a id="thabto">Novelty</a>
</div>
#nav a {
background: url(Images/Button.png);
height: 28px;
width: 130px;
font-family: "Book Antiqua";
font-size: 12px;
text-align: center;
vertical-align: bottom;
color: #C60;
text-decoration: none;
background-position: center;
margin: auto;
display: block;
position: relative;
}
#nav a:hover {
background: url(Images/Button%20Hover.png);
height: 34px;
width: 140px;
font-family: "Book Antiqua";
font-size: 16px;
text-align: center;
color: #C60;
text-decoration: none;
margin: -3px;
z-index: 2;
}
#nav a:active {
background: url(Images/Button%20Hover.png);
height: 34px;
width: 140px;
font-family: "Book …Run Code Online (Sandbox Code Playgroud) 将html放入数据库是错误的吗?
例如贝宝按钮...
或者用几个换行符块文本?
我一直在研究 Unix 时间戳如何解释夏令时,这里似乎有很多令人费解的答案,关于这并不重要,或者只是将其设置为欧洲/伦敦或使用获取当地时间的函数。这仍然没有考虑夏令时!这是一些测试代码:
date_default_timezone_set('Europe/London');
$timestamp_time = date("hi", 1377853200);
echo $timestamp_time;
Run Code Online (Sandbox Code Playgroud)
这将比实际速度快一小时返回时间戳的小时和分钟(设置为上午 9 点,返回上午 10 点)。这个时间戳是使用设置为 GMT (+0) 的在线转换器创建的,我使用了各种转换器,所以不仅仅是这个转换器被破坏了。我必须在该项目中使用 GMT。任何人都可以澄清我如何允许夏令时或者已经允许吗?另外,快速解释一下为什么它会这样做会非常有用。
我想最后我需要知道如何继续,我是否使用我的代码来允许它,例如冬季月份-1小时,夏季月份+1小时?这似乎是一个荒谬的解决方案...任何帮助都会很棒。谢谢。