Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/274.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
css和php不起作用_Php_Css_Wordpress_Styles - Fatal编程技术网

css和php不起作用

css和php不起作用,php,css,wordpress,styles,Php,Css,Wordpress,Styles,由于某种原因,它不起作用。 css存储在style.css,但复选框行中的样式也不起作用 我的网站是: 谢谢 p、 我使用wordpress和“用于帖子的PHP代码”插件,但我不确定这有什么关系 .Checkboxstyle { background-repeat: no-repeat; border: 2px solid #DDD; height: 150px!important; font-size: 150%; -webkit-border-radi

由于某种原因,它不起作用。 css存储在style.css,但复选框行中的样式也不起作用

我的网站是:

谢谢

p、 我使用wordpress和“用于帖子的PHP代码”插件,但我不确定这有什么关系

.Checkboxstyle {
    background-repeat: no-repeat;
    border: 2px solid #DDD;
    height: 150px!important;
    font-size: 150%;
    -webkit-border-radius: 20px;
    -khtml-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px; 
    background-image: url(http://doarna.com/wp-content/uploads/2012/09/XCellcom.gif);}
}


<?php

global $wpdb;
$query = "SELECT * FROM wp_organization where type='תקשורת'";
$results = $wpdb->get_results( $query );

    foreach ($results as $result) {
        $MEATZBEN = $result->NAME;
        $MEATZBENID = $result->ID;
        echo "<input type='checkbox' name='$MEATZBENID'  class='Checkboxstyle' 
               style='font-size: 100px;' value='$MEATZBEN'>. $MEATZBEN<br />";

    }

?>
.Checkboxstyle{
背景重复:无重复;
边框:2px实心#DDD;
高度:150px!重要;
字体大小:150%;
-webkit边界半径:20px;
-khtml边界半径:20px;
-moz边界半径:20px;
边界半径:20px;
背景图片:url(http://doarna.com/wp-content/uploads/2012/09/XCellcom.gif);}
}

假设您所有的标记都是正确的,这里的问题是您正在对复选框应用颜色-一个不显示文本的元素。您需要将颜色类应用于复选框旁边的任何文本

<style>
.Checkboxstyle { color: red;}
</style>
<input type="checkbox" name="check1" value="1"> <label class="Checkboxstyle">This is my checkbox</label>

.Checkboxstyle{颜色:红色;}
这是我的复选框

当我尝试“颜色:红色”时,它确实有效,但当我尝试“高度:150px”等其他属性时,它无效,有什么建议吗?thankslabel不是块级元素。您需要添加display:block来修改定位和尺寸i添加我的所有属性。谢谢