长jQuery选择菜单弹出窗口上的不透明覆盖?

时间:2016-10-12 12:07:00

标签: javascript jquery jquery-mobile popup jquery-ui-selectmenu

我有一个很长的列表,其中包含一个jQuery Mobile选择菜单小部件,该小部件将作为弹出窗口打开。默认情况下,弹出窗口会以纯白色背景打开(如果我在import org.apache.spark.SparkContext import org.apache.spark.sql.SQLContext import org.apache.spark.sql.functions.{unix_timestamp, year} val sc: SparkContext = ??? // I consider that you are able to create both your SparkContext and SQLContext alone val sqlContext: SQLContext = ??? import sqlContext.implicits._ // needed to use implicits like .toDF val data = Seq( "10.1515/cipms-2015-0089 2016-06-09T18:29:46.000046+01:00", "10.1515/cipms-2015-0089 2016-06-09T18:29:46.000046+01:00", "10.1007/s13595-016-0548-3 2015-06-08T17:01:10.000010+01:00") // data: Seq[String] = List(10.1515/cipms-2015-0089 2016-06-09T18:29:46.000046+01:00, 10.1515/cipms-2015-0089 2016-06-09T18:29:46.000046+01:00, 10.1007/s13595-016-0548-3 2015-06-08T17:01:10.000010+01:00) val df = sc.parallelize(data).map(_.split("\\s+") match { case Array(doi, time) => (doi, time) }).toDF("doi", "timestamp").withColumn("timestamp", unix_timestamp($"timestamp", "yyyy-MM-dd'T'hh:mm:ss").cast("timestamp")) // df: org.apache.spark.sql.DataFrame = [doi: string, timestamp: timestamp] df.groupBy(year($"timestamp").as("year")).count.show // +----+-----+ // |year|count| // +----+-----+ // |2015| 1| // |2016| 2| // +----+-----+ 标记中明确设置了data-overlay-theme=a),并且如果我将此属性更改为<select>,则会打开一个实体黑色背景。在我的网站的其他地方,我使用带有data-overlay-theme=b的jQuery弹出窗口小部件,背景是不透明的黑色(可能是50%)。

有没有办法让select菜单小部件弹出窗口的背景与弹出窗口小部件具有相同的背景?

Here's a JSFiddle with a few demos

0 个答案:

没有答案