- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 IE 上遇到“li”的小问题。 “li”没有显示为 block ,“list-style-image”也不起作用。我找遍了整个网络,但没有找到类似的东西。在 FF、Chrome 和 Safari 上,结果非常好。
感谢您的帮助。下面是我的 HTML 和 IE CSS:
<html>
<head>
<title>IE test</title>
<link rel="shortcut icon" type="image/x-icon" href="content/images/">
<link rel="stylesheet" type="text/css" href="content/css/alerts_rev00.css">
<!--[if gte IE 7]>
<link rel="stylesheet" type="text/css" href="content/css/alertsIE_rev00.css" />
<![endif]-->
</head>
<body>
<div id="error_msg">
<ul>
<li>Please, fill the "adress" field.</li>
<li>Please, chose an username containing 4 character, at least.</li>
</ul>
</div>
</body>
<html>
body {
margin: 0px;
padding: 20px;
}
#error_msg ul {
position: relative;
width: 476px;
margin: 0px 0px 20px 0px;
background-color: #ffeaea;
list-style-image: url("http://www.dvertr.com/content/images/dvertr_erro_icone.png");
border-bottom: solid 1px #ef404a;
color: #ef404a;
text-align: left;
}
#error_msg ul li{
display: block;
line-height: 25px;
font-family: georgia, times, serif;
font-size: 12px;
font-style: italic;
text-decoration: none;
}
最佳答案
不幸的是,“list-style-image”只会给我的 friend 带来痛苦。将它换成 LI 上的背景图像。 更容易跨浏览器呈现。
li {
padding: 0 0 0 20px;
background-repeat: no-repeat;
background-position: 2px 2px;
background-image: url("http://www.dvertr.com/content/images/dvertr_erro_icone.png")
}
根据需要更改位置以使其四处移动以达到平衡。
关于css - <li> 在 IE 上看起来很奇怪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5146031/
我正在尝试执行 vagrant up 但一直遇到此错误: ==> default: IOError: [Errno 13] Permission denied: '/usr/local/lib/pyt
我在容器 div 中有一系列动态创建的不同高度的 div。 Varying text... Varying text... Varying text... Varying text.
通过 cygwin 运行 vagrant up 时遇到以下错误。 stderr: /bin/bash: /home/vagrant/.ansible/tmp/ansible-tmp-14872260
今天要向小伙伴们介绍的是一个能够快速地把数据制作成可视化、交互页面的 Python 框架:Streamlit,分分钟让你的数据动起来! 犹记得我在做机器学习和数据分析方面的毕设时,
我是 vagrant 的新手,正在尝试将第二个磁盘添加到我正在用 vagrant 制作的虚拟机中。 我想出了如何在第一次启动虚拟机时连接磁盘,但是当我关闭机器时 然后再次备份(使用 'vagrant
我是一名优秀的程序员,十分优秀!