Can you use an external style sheet or an internal style sheet in this situation? What to do with it

Source: Internet
Author: User
Can you use an external style sheet or an internal style sheet in this situation?
I have a menu.php, menu.php defines the navigation menu part of the left and right pages, that is, the head tag pair and body tag are in menu.php, the head tag pair uses an external style sheet style1.css, and the other PHP require menu.php.
For example, customer.php require the stype of those elements in menu.php,custom.php in a non-attribute menu.php can only use inline style sheets? Or can you define the STYLE1.CSS?
I defined the class attribute for the HTML tag in customer.php, and I set the CSS property on the class in Style1.css, and the result doesn't work. Should it work?


------Solution--------------------
There should be other reasons for it!
------Solution--------------------
At least you're not clear about the problem you're having, style has an inheritance, and that's what everyone knows.
------Solution--------------------
Supposed to work.
I think you should check if the stylesheet is loaded and the href is correct. If you use Chrome, the review element feature can help you see all the style attributes
  • Related Article

    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.