Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/asietex.co.id/public_html/application/third_party/dompdf/www/test/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> <style> ul { line-height:160% } a { border-bottom:dashed 1pt red !important; text-decoration:none !important; } .monospace { font-family:monospace !important; } </style> </head> <body> <h1>Handling of "!important" property flag</h1> <p> Normally later css style properties defined later are overriding earlier ones.<br> Except if they are marked with the flag "!important".<br> Those can only be overridden by style properties which are also marked "!important". </p> <p>There are two classes of property overriding</p> <ul> <li>inherit (nested html tags)</li> <li>merging (more css properties to the same html tag)</li> </ul> <p>This is handled similarly for all styles, so we check only examples here</p> <p>ul { line-height:160% }<p> <h2>merge a { border-bottom:dashed 1pt red !important; text-decoration:none !important; }</h2> <p>dummy links, text decoration/border bottom:</p> <ul> <li><a href="">(default)</a></li> <li><a href="" style="border-bottom-style:none;">border-bottom-style:none; (ignore)</a></li> <li><a href="" style="border:1pt solid blue;">border:1pt solid blue; (ignore)</a></li> <li><a href="" style="border-bottom-style:none!important;">border-bottom-style:none!important; (override)</a></li> <li><a href="" style="border:1pt solid blue!important;">border:1pt solid blue!important; (override)</a></li> </ul> <h2>Inherit .monospace { font-family:monospace !important; }</h2> <p>font family selection:</p> <ul class="monospace"> <li>(default)</li> <li class="font-family:sans-serif;">font-family:sans-serif; (ignored)</li> <li style="font-family:sans-serif!important;">font-family:sans-serif!important; (override)</li> </ul> </body> </html>