我已经建立了一个下拉菜单,我自定义了向下箭头.
没关系,工作正常.
在IE 10中,当我打开下拉列表时,我有黑色边框.

有没有办法降低那些或改变它们的颜色?
CSS
#contact #tabs #bord td select {
background: url("/static/img/down-arrow.png") no-repeat right #fff;
border:none;
padding: 0 5px;
overflow:hidden;
width: 120%;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
}
select::-ms-expand {
display: none;
}
Run Code Online (Sandbox Code Playgroud)
HTML/CMS模板
<td colspan="2">
<div class="styleSelect">
<select name="topic" class="desktopDropDown" style="border:none;">
{% with request|enquiry_topics as topics %}
{% for t in topics %}
<option value="{{t.id}}">{{t}}</option>
{% endfor %}
{% endwith %}
</select>
</div>
Run Code Online (Sandbox Code Playgroud)
我正在为我的Django 1.5.1和Django-cms安装构建一个应用程序.该应用程序旨在允许上传链接到URL的图像.我的代码:
cms_plugins.py
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cms.plugins.text.widgets.wymeditor_widget import WYMEditor
from django.forms.fields import CharField
from models import ImageText
class ImageTextPlugin(CMSPluginBase):
model = ImageText
name = "video wall"
render_template = "video.html"
def render(self, context, instance, placeholder):
context.update({
'object':instance,
})
return context
plugin_pool.register_plugin(ImageTextPlugin)
Run Code Online (Sandbox Code Playgroud)
models.py
from django.db import models
from django.db.models import fields
from filer.fields.image import FilerImageField
from filer.fields.file import FilerFileField
from cms.models import CMSPlugin
class ImageText(CMSPlugin):
image = FilerImageField(related_name="image0")
link = models.CharField(max_length=255, blank=True)
Run Code Online (Sandbox Code Playgroud)
admin.py
from django.contrib import …Run Code Online (Sandbox Code Playgroud) 我想知道哪个是不同的:
.myClass/DomElement .myotherclassinsidethatelement
Run Code Online (Sandbox Code Playgroud)
和
.myClass/DomElement > .myotherclassinsidethatelement
Run Code Online (Sandbox Code Playgroud)
两者都选择我的.myClass/DomElement里面的myotherclassinsidethatelement类元素或者我错过了什么?
css ×2
angularjs ×1
django ×1
django-1.5 ×1
django-cms ×1
html ×1
ng-repeat ×1
python ×1
select ×1