質問編集履歴
2
タグ削除
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
デモイメージの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -44,4 +44,74 @@
|
|
44
44
|
そこで、セレクトボックスを展開する方法はありますか?
|
45
45
|
また別の方法で全面テキストの裏側を触る方法はありますか?
|
46
46
|
|
47
|
-
どうぞよろしくお願いいたします。
|
47
|
+
どうぞよろしくお願いいたします。
|
48
|
+
|
49
|
+
追記
|
50
|
+
|
51
|
+
```aspx
|
52
|
+
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm2.aspx.vb" Inherits="FLEX.WebForm2" %>
|
53
|
+
|
54
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
55
|
+
|
56
|
+
|
57
|
+
<html xmlns="http://www.w3.org/1999/xhtml"
|
58
|
+
<head runat="server">
|
59
|
+
<meta http-equiv="X-UA-Compatible" content="IE=7" />
|
60
|
+
<title></title>
|
61
|
+
<style type = "text/css">
|
62
|
+
.unitnumber {
|
63
|
+
|
64
|
+
font-size: 130px;
|
65
|
+
position: fixed;
|
66
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=30);
|
67
|
+
}
|
68
|
+
</style>
|
69
|
+
<script language="javascript" type ="text/javascript" >
|
70
|
+
function noClick(X, Y) {
|
71
|
+
//X,Yでクリック座標を取得
|
72
|
+
|
73
|
+
//テキストを消す
|
74
|
+
document.getElementById("TEXT").style.display = "none";
|
75
|
+
|
76
|
+
|
77
|
+
//取得した座標にある要素を取得
|
78
|
+
elemnt = document.elementFromPoint(X, Y);
|
79
|
+
|
80
|
+
|
81
|
+
//取得した要素にフォーカスを当てる
|
82
|
+
//elemnt.focus()
|
83
|
+
|
84
|
+
//取得した要素をクリック
|
85
|
+
elemnt.click()
|
86
|
+
|
87
|
+
//テキストを出す
|
88
|
+
document.getElementById("TEXT").style.display = "block";
|
89
|
+
|
90
|
+
}
|
91
|
+
</script>
|
92
|
+
</head>
|
93
|
+
<body>
|
94
|
+
<form id="form1" runat="server">
|
95
|
+
<div>
|
96
|
+
<div class="unitnumber" id="TEXT" onclick="noClick(event.clientX, event.clientY)"
|
97
|
+
style="font-family: メイリオ; font-weight: bold; font-size: 25vw; z-index: 10;" >TEXT</div>
|
98
|
+
<asp:Button ID="Button1" runat="server" Text="Button" Width="108px" />
|
99
|
+
<br />
|
100
|
+
<asp:DropDownList ID="DropDownList1" runat="server" Height="31px" Width="105px"
|
101
|
+
Font-Size="Larger">
|
102
|
+
<asp:ListItem>TEST1</asp:ListItem>
|
103
|
+
<asp:ListItem>TEST2</asp:ListItem>
|
104
|
+
<asp:ListItem>TEST3</asp:ListItem>
|
105
|
+
<asp:ListItem>TEST4</asp:ListItem>
|
106
|
+
<asp:ListItem>TEST5</asp:ListItem>
|
107
|
+
<asp:ListItem>TEST6</asp:ListItem>
|
108
|
+
</asp:DropDownList>
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</form>
|
112
|
+
</body>
|
113
|
+
</html>
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
デモイメージですがこんな感じです。ここのリストを触りたいです。
|