小编Dav*_*vey的帖子

翻转时使图像变暗

我有一个需要在翻转时变暗的图像列表.我真的很喜欢这样做,没有臃肿的CSS翻转技术,因为任何时候花在Photoshop上都会让我很开心.我有一部分路在那里,但出了点问题.这是现场:

http://daveywhitney.com/dark/

码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Darken</title>
<style type="text/css">
#topnav {
    float:left;
    margin:22px 0 0 50px;
    list-style:none;
}
.kitchy {
    background-color:#000000;
    width:112px;
    height:203px;
}

#topnav  a:hover{
    opacity:.6;
}

#topnav  li {
    display:inline;
}
</style>
</head>

<body>
<ul id="topnav">
            <li class="kitchy"><a href="#"><img src="img/kitch.jpg" /></a></li>
            <li><img src="img/deck_small.jpg" /></li>
            <li><img src="img/door_small.jpg" /></li>
            <li><img src="img/lumber_small.jpg" /></li>
            <li><img src="img/tools_small.jpg" /></li>
            <li><img src="img/paint_small.jpg" /></li>
        </ul>
</body>

</html>
Run Code Online (Sandbox Code Playgroud)

html css opacity css3

2
推荐指数
1
解决办法
1万
查看次数

根据星期几显示PHP对象

因此,我在一周中的每一天都设置了7个不同对象的业务时间.我希望能够在标题中显示当前这一天的业务时间.像这样设置,但它不会吐出任何东西

<?php
    $d=date("D");
    if ($d=="Mon")
    echo <?php echo of_get_option('monday', 'no entry'); ?>;
    elseif ($d=="Tue")
    echo <?php echo of_get_option('tuesday', 'no entry'); ?>;
    elseif ($d=="Wed")
    echo <?php echo of_get_option('wednesday', 'no entry'); ?>;
    elseif ($d=="Thu")
    echo <?php echo of_get_option('thursday', 'no entry'); ?>;
    elseif ($d=="Fri")
    echo <?php echo of_get_option('friday', 'no entry'); ?>;
    elseif ($d=="Sat")
    echo <?php echo of_get_option('saturday', 'no entry'); ?>;
    elseif ($d=="Sun")
    echo <?php echo of_get_option('sunday', 'no entry'); ?>;
    else
    echo "Have a nice day!";
?>
Run Code Online (Sandbox Code Playgroud)

html css php wordpress

1
推荐指数
1
解决办法
1925
查看次数

更清洁的PHP随机文本

随着每个页面刷新使用PHP随机生成文本.是否有更清洁的方法来解决这个问题?另外,这可以用jquery完成吗?

<?php
$random_text = array("Random Text 1",
                "Random Text 2",
                "Random Text 3",
                "Random Text 4",
                "Random Text 5");
srand(time());
$sizeof = count($random_text);
$random = (rand()%$sizeof);
print("$random_text[$random]");
?>
Run Code Online (Sandbox Code Playgroud)

php random jquery

0
推荐指数
1
解决办法
1654
查看次数

Div不向左浮动

似乎无法让这个div向左移动.使用wordpress.我尝试了很多东西,但我不知所措.这是div的css:

#portfolio li img {
    position: absolute;
    float: left;
    margin: 34px 50px 0 0;
    width: 942px;
}
Run Code Online (Sandbox Code Playgroud)

这是header.php:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Davey Whitney
davey@daveywhitney.com
-->

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />



<link rel="stylesheet" type="text/css" href="wp-content/themes/zenlite/layout.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="wp-content/themes/zenlite/color.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.kwicks-1.5.1.js"></script>
<script type="text/javascript" src="js/jquery.innerfade.js"></script>
<script type="text/javascript" src="js/custom.js"></script>





<title>
Wildfire
</title>


<script type="text/javascript" src="http://wfithaca.com/js/jquery.lavalamp.js"></script> …
Run Code Online (Sandbox Code Playgroud)

html css php jquery

0
推荐指数
1
解决办法
2993
查看次数

标签 统计

css ×3

html ×3

php ×3

jquery ×2

css3 ×1

opacity ×1

random ×1

wordpress ×1