我在Window.open的弹出窗口中使用javascript打开aspx页面。
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="16dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ชื่อ" />
<EditText
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:hint="กรอกชื่อหมุด" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="16dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ชื่อ" />
<EditText
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:hint="กรอกชื่อหมุด" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="16dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ชื่อ" />
<EditText
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:hint="กรอกชื่อหมุด" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="16dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ชื่อ" />
<EditText
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:hint="กรอกชื่อหมุด" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="16dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ชื่อ" />
<EditText
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:hint="กรอกชื่อหมุด" />
</LinearLayout>
<LinearLayout
android:id="@+id/pinNameContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="16dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ชื่อ" />
<EditText
android:id="@+id/edtPinName"
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:hint="กรอกชื่อหมุด" />
</LinearLayout>
<LinearLayout
android:id="@+id/pinDescContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="@dimen/from_edge_space"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pinNameContainer">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="นามสกุล" />
<EditText
android:id="@+id/edtPinDesc"
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:hint="กรอกรายละเอียด" />
</LinearLayout>
<LinearLayout
android:id="@+id/genderContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="@dimen/from_edge_space"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pinDescContainer">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="เพศ" />
<EditText
android:id="@+id/edtGender"
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:drawableEnd="@drawable/ic_chevron_right"
android:drawableRight="@drawable/ic_chevron_right"
android:enabled="false"
android:hint="ไม่ระบุ" />
</LinearLayout>
<LinearLayout
android:id="@+id/endDateContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="@dimen/from_edge_space"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/genderContainer">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="วันสิ้นสุด" />
<TextView
android:id="@+id/tvEndDate"
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:drawableEnd="@drawable/ic_chevron_right"
android:drawableRight="@drawable/ic_chevron_right"
android:text="ไม่ระบุ" />
</LinearLayout>
<LinearLayout
android:id="@+id/privacyContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/from_edge_space"
android:layout_marginStart="@dimen/from_edge_space"
android:layout_marginTop="@dimen/from_edge_space"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/endDateContainer">
<TextView
style="@style/TextView.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ผู้เห็นหมุด " />
<TextView
android:id="@+id/tvPrivacy"
style="@style/TextView.Big"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:drawableEnd="@drawable/ic_chevron_right"
android:drawableRight="@drawable/ic_chevron_right"
android:text="สาธารณะ(คนทั่วไปเห็น)" />
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
正如我所料,当我在firefox和IE中打开此页面时,地址栏没有显示,但在Chrome中它仍在显示。
还有如何隐藏弹出窗口中的最小化和最大化。
请帮助我。
答案 0 :(得分:0)
您只需检查您正在使用的jQuery版本,并将jQuery Url 刚刚放在Java脚本代码上。
答案 1 :(得分:0)
出于安全原因,今天的大多数浏览器都不允许隐藏地址栏。
您也无法删除弹出窗口中的最小化/最大化按钮。