With regard to the smarty template technology, it cannot be displayed in combination with the css style. I wrote a page and the content is still okay. the display effect with css has reached my expectation, however, when I used the smarty template technology to display this page, there was no error or exception, but the page layout was messy (I checked it many times, I didn't miss loading css files or make spelling mistakes.) isn't it because the template is not loaded into css when it is loaded by smarty? I did not know much about it. thank you!-question about the smarty template technology ,,, css style display unavailable
Yes. I wrote a page and the content was okay. in combination with css, the display effect reached my expectation,
However, when I use the smarty template technology to display this page, there is no error or exception, but the page layout is messy,
(I have checked it many times, and I have not missed the css file or the spelling mistake.) is it because the template is not loaded into css when the smarty template is loaded,
My younger brother has not scored much. thank you!
------ Solution --------------------
It's impossible for you to right-click the source code and click the CSS file you loaded to see if 404 is reported.
------ Solution --------------------
Check whether the file encoding has a BOM header.
------ Solution --------------------
According to my first floor test, the path should be relative to the path of your php file, not the template path.
------ Solution --------------------
This is the most common browser compatibility issue. IE9-IE6, ff, chrome, opera, safari ......
------ Solution --------------------
Deliver problems...
------ Solution --------------------
------ Solution --------------------
Just compare the html output content (html source file) before and after modification.