Hiding a Div using php

后端 未结 6 398
失恋的感觉
失恋的感觉 2020-12-18 05:47

I am currently hiding a div based on an if statement. The method I use is, use echo out a css style of display: none

Here is w

6条回答
  •  轮回少年
    2020-12-18 05:57

    Using Php in your CSS (Cascade Style Sheet) is not "proper",

    Also, You can use Php in your HTML:

    
        
            
    Foo bar

    With this code, div block don't appear, (and you don't use it with JavaScript), You can use this for just hidden your div :

     
        
    > Foo bar

提交回复
热议问题