我正试图用我自己的图片替换选择的箭头.我将选择包含在具有相同大小的div中,我将选择的背景设置为透明,并且我在div的右上角包含一张图片(与箭头大小相同)作为背景.
它只适用于Chrome.
我怎样才能使它在Firefox和IE9中工作,我得到了这个:
.styled-select {
width: 100px;
height: 17px;
overflow: hidden;
overflow: -moz-hidden-unscrollable;
background: url(images/downarrow_blue.png) no-repeat right white;
border: 2px double red;
display: inline-block;
position: relative;
}
.styled-select select {
background: transparent;
-webkit-appearance: none;
width: 100px;
font-size: 11px;
border: 0;
height: 17px;
position: absolute;
left: 0;
top: 0;
}
body {
background-color: #333333;
color: #FFFFFF;
}
.block label {
color: white;
}
Run Code Online (Sandbox Code Playgroud)
<HTML>
<HEAD>
</HEAD>
<BODY>
<p/>
<form action="/prepareUpdateCategoryList.do?forwardto=search">
<fieldset class="block" id="searchBlock">
<p>
<label style="width:80px">Class</label>
<div class="styled-select">
<select property="voucherCategoryClass">
<option …
Run Code Online (Sandbox Code Playgroud)在jboss上部署我的struts2项目时,我收到以下错误:
10:28:44,937 INFO [TomcatDeployer] deploy, ctxPath=/simu_interface, warUrl=.../deploy/simu_interface.war/
10:28:45,161 ERROR [[/simu_interface]] Exception starting filter struts2
java.lang.NoSuchMethodError: com.opensymphony.xwork2.config.ConfigurationManager.addConfigurationProvider(Lcom/opensymphony/xwork2/config/ConfigurationProvider;)
The web.xml file contains the following fragment:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Run Code Online (Sandbox Code Playgroud)
以下jar包含在WEB-INF/lib文件夹中:
通过在第一个答案中建议用xwork替换xwork-core,我收到以下错误: - 无法加载bean:type:com.opensymphony.xwork2.FileManager类:com.opensymphony.xwork2.util.fs.DefaultFileManager - bean - jar:file:/ D:/opt/FERMA/absapp/jboss/server/default/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:32:127
跟踪如下:
12:04:29,617 INFO [TomcatDeployer] deploy, ctxPath=/simu_interface, warUrl=.../deploy/simu_interface.war/
12:04:29,872 INFO [STDOUT] 2012-11-06 12:04:29,868 DEBUG com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.debug:57 - Loading action configurations from: struts-default.xml
12:04:29,899 INFO [STDOUT] 2012-11-06 12:04:29,898 DEBUG …
Run Code Online (Sandbox Code Playgroud) 为什么我收到错误:
int i=0;
++i++;
Run Code Online (Sandbox Code Playgroud)
这个错误是什么意思?
unexpected type ++i++;
required: variable
found: value
Run Code Online (Sandbox Code Playgroud)