Conditional Formatting in HTML Tags

前端 未结 7 1311
挽巷
挽巷 2020-12-31 12:23

Is there any option for using IF-ELSE conditioning in HTML tags

   do something     
      do something            


        
7条回答
  •  情深已故
    2020-12-31 13:13

    HTML was designed for document layout so the noscript and noframes are about as close as HTML gets to handling conditionals. You could conceivably approach this problem with javascript.

    
    
    
    
    

    of course this only works if the client has javascript turned on.

提交回复
热议问题