


External css cannot be introduced under IE11. After trying for a long time, I came here to solve the problem_html/css_WEB-ITnose
html代码:

电话:010-51282827
手机:l342 6060 l34
地址:中关村南大街九龙商务中心C座


css代码:
@charset "UTF-8";
#container {
width: 1002px;
margin: 0 auto;
}
#header {
height: 128px;
background: url(../images/top_bg.jpg);
background-repeat: no-repeat;
}
#nav li {
float: left;
margin-right: 1px;
}
#nav a {
color: #363635;
font: 15px/37px '微软雅黑';
display: block;
width: 92px;
height: 37px;
text-align: center;
}
#nav a:hover {
background: url(../images/nav_on.gif);
}
#main {
}
#lside {
border: 1px solid #eee;
border-top: none;
width: 692px;
float: left;
}
.subtitle {
height: 37px;
background: url(../images/article_bg.gif);
}
.subtitle img {
margin: 5px 0px 0px 10px;
float: left;
}
.subtitle h1 {
float: left;
color: #151515;
font: 16px/37px '微软雅黑';
}
.subtitle a {
float: right;
color: #888;
font: 12px '微软雅黑';
}
.four {
width: 326px;
height: 200px;
background: #eee;
float: left;
margin: 10px;
_display:inline;
}
.four img {
float: left;
margin-left: 10px;
padding: 6px;
background: white;
}
.four h2 {
font: 16px '宋体';
color:#a0a0a0;
margin-left: 10px;
}
.four ul {
float: left;
}
.four li {
background: url(../images/service_intro_bg.gif) no-repeat;
background-position: left center;
padding-left: 10px;
margin: 5px 0;
}
.four a {
color: #888;
font: 12px '微软雅黑';
height:20px;
}
.four a:visted {
color: #808080;
}
.four a:hover {
color: #ff823c;
}
#rside {
width: 294px;
float: right;
}
#art {
background: #eee;
margin-top: 1px;
padding-top: 5px;
margin-bottom: 12px;
}
#art li {
font: 12px/30px sans-serif;
}
#art a {
padding-left: 30px;
display: block;
height: 30px;
color: #888;
background: url(../images/article_head.gif) no-repeat;
background-position: left center;
}
#art a:hover{
color: orange;
background: url(../images/article_on_bg.gif);
}
#lian {
background: #eee;
height: 145px;
color: gray;
font: 12px '微软雅黑';
padding: 20px 0 0 10px;
}
#lian img {
display: inline;
}
#footer {
clear: both;
}
#contact {
margin-top: 1px;
background: #eee;
height: 40px;
}
#contact li{
font-size: 12px;
float: left;
width: 60px;
padding-left: 20px;
padding-top: 10px;
}
#contact a {
color: gray;
font: 14px '宋体';
}
#contact a:hover {
color: orange;
}
address {
float: left;
color: gray;
font: 12px '微软雅黑';
padding-top: 10px;
padding-bottom: 10px;
}
#wai {
float: left;
color: gray;
font: 12px '微软雅黑',sans-serif;
margin-top: 10px;
margin-bottom: 10px;
}
#wai a {
color:orange;
margin-left: 10px;
}
#wai a:hover {
color: gray;
}
Reply to the discussion (solution)
Write .XXX in css
Then write class="XXX"
in html. Not possible ?
Riga type="text/css" Try
Tried adding type, but it didn’t work
Add Tried type, but it didn’t work
Is the css path correct? Are there no conflicts between the two css files?
I have uploaded everything to the server, but even the pictures are gone under IE
I have uploaded everything to the server, and even the pictures are gone under IE
The css path and image path may be wrong or the image has not been uploaded. When the file is uploaded to the server, the path may change
Are you sure it cannot be imported under iE11?
You try Google and Firefox.
F12 to debug.
There must be something wrong with your path!
Everything works fine under Google, Firefox, and Safari. I can’t sleep tonight.
Everything works fine under Google, Firefox, and Safari. I can’t sleep tonight.
Press F12 to debug it and see if there are any errors in the console. IE is more strict and errors will occur even if it is slightly worse
1. Check the format
="stylesheet" type="text/css" href="">
2. Check the path
Open the Google console, find the tag, right-click the path in new Open the CSS file in the window and see if it can be opened

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

It is a block-level element, used to divide large block content areas; it is an inline element, suitable for wrapping small segments of text or content fragments. The specific differences are as follows: 1. Exclusively occupy a row, width and height, inner and outer margins can be set, which are often used in layout structures such as headers, sidebars, etc.; 2. Do not wrap lines, only occupy the content width, and are used for local style control such as discoloration, bolding, etc.; 3. In terms of usage scenarios, it is suitable for the layout and structure organization of the overall area, and is used for small-scale style adjustments that do not affect the overall layout; 4. When nesting, it can contain any elements, and block-level elements should not be nested inside.

To get started with HTML quickly, you only need to master a few basic tags to build a web skeleton. 1. The page structure is essential, and, which is the root element, contains meta information, and is the content display area. 2. Use the title. The higher the level, the smaller the number. Use tags to segment the text to avoid skipping the level. 3. The link uses tags and matches the href attributes, and the image uses tags and contains src and alt attributes. 4. The list is divided into unordered lists and ordered lists. Each entry is represented and must be nested in the list. 5. Beginners don’t have to force memorize all tags. It is more efficient to write and check them while you are writing. Master the structure, text, links, pictures and lists to create basic web pages.

The key to adding images in HTML is to use the img tag and set the properties correctly. First, you must use the tag and set the src attribute to specify the image path. Secondly, it is recommended to add the alt attribute to provide alternative text; the path can be a relative path or an absolute path, and you need to pay attention to case, format support and server configuration; in addition, the picture style can be controlled through CSS to enhance responsiveness and aesthetics.

linkrel="preload" is a technology that optimizes page loading performance and is used to load critical resources in advance. Its core purpose is to prioritize loading of resources that are critical to home screen rendering, such as fonts, key CSS/JS and home screen images. Pay attention to when using: 1. Set the as attribute correctly to specify the resource type; 2. Avoid abuse and prevent excessive bandwidth usage; 3. Ensure that the resources will be actually used, otherwise it will cause waste of requests; 4. Add crossorigin attribute to cross-domain resources. Incorrect writing method such as the lack of the as attribute will cause the preload to be invalid. Rational use can improve page loading efficiency, otherwise it may be counterproductive.

HTML provides three list types to structure content. 1. Unordered list () is used for entries that require no order, such as function list or ingredients; 2. Ordered list () is used for sequential content, such as step description, and supports multiple numbering formats; 3. Description list (,,) is used to pair terms and descriptions, such as dictionaries or product specifications; in addition, it also supports nested lists, which can add sublists under the main entry to organize complex information, thereby improving page readability and accessibility.

ShadowDOM is a technology used in web component technology to create isolated DOM subtrees. 1. It allows the mount of an independent DOM structure on ordinary HTML elements, with its own styles and behaviors, and does not affect the main document; 2. Created through JavaScript, such as using the attachShadow method and setting the mode to open; 3. When used in combination with HTML, it has three major features: clear structure, style isolation and content projection (slot); 4. Notes include complex debugging, style scope control, performance overhead and framework compatibility issues. In short, ShadowDOM provides native encapsulation capabilities for building reusable and non-polluting UI components.

❌Youcannotnesttagsinsideanothertagbecauseit’sinvalidHTML;browsersautomaticallyclosethefirstbeforeopeningthenext,resultinginseparateparagraphs.✅Instead,useinlineelementslike,,orforstylingwithinaparagraph,orblockcontainerslikeortogroupmultipleparagraph

The style placement method needs to be selected according to the scene. 1. Inline is suitable for temporary modification of single elements or dynamic JS control, such as the button color changes with operation; 2. Internal CSS is suitable for projects with few pages and simple structure, which is convenient for centralized management of styles, such as basic style settings of login pages; 3. Priority is given to reuse, maintenance and performance, and it is better to split external link CSS files for large projects.
