Problems related to the smarty template technology cannot be displayed in combination with css styles.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.