If instr(request.servervariables("http_user_agent"),"MicroMessenger")=0 Then End If
pointer-events: auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all
$("#msgcontent").val().replace(/(\r\n|\n|\r)/gm,'')
选择器 | 实例 | 选取 |
---|---|---|
* | $("*") | 所有元素 |
#id | $("#lastname") | id="lastname" 的元素 |
.class | $(".intro") | 所有 class="intro" 的元素 |
element | $("p") | 所有 <p> 元素 |
.class.class | $(".intro.demo") | 所有 class="intro" 且 class="demo" 的元素 |
:first | $("p:first") | 第一个 <p> 元素 |
:last | $("p:last") | 最后一个 <p> 元素 |
:even | $("tr:even") | 所有偶数 <tr> 元素 |
:odd | $("tr:odd") | 所有奇数 <tr> 元素 |
:eq(index) | $("ul li:eq(3)") | 列表中的第四个元素(index 从 0 开始) |
:gt(no) | $("ul li:gt(3)") | 列出 index 大于 3 的元素 |
:lt(no) | $("ul li:lt(3)") | 列出 index 小于 3 的元素 |
:not(selector) | $("input:not(:empty)") | 所有不为空的 input 元素 |
:header | $(":header") | 所有标题元素 <h1> - <h6> |
:animated | 所有动画元素 | |
:contains(text) | $(":contains('W3School')") | 包含指定字符串的所有元素 |
:empty | $(":empty") | 无子(元素)节点的所有元素 |
:hidden | $("p:hidden") | 所有隐藏的 <p> 元素 |
:visible | $("table:visible") | 所有可见的表格 |
s1,s2,s3 | $("th,td,.intro") | 所有带有匹配选择的元素 |
[attribute] | $("[href]") | 所有带有 href 属性的元素 |
[attribute=value] | $("[href='#']") | 所有 href 属性的值等于 "#" 的元素 |
[attribute!=value] | $("[href!='#']") | 所有 href 属性的值不等于 "#" 的元素 |
[attribute$=value] | $("[href$='.jpg']") | 所有 href 属性的值包含以 ".jpg" 结尾的元素 |
:input | $(":input") | 所有 <input> 元素 |
:text | $(":text") | 所有 type="text" 的 <input> 元素 |
:password | $(":password") | 所有 type="password" 的 <input> 元素 |
:radio | $(":radio") | 所有 type="radio" 的 <input> 元素 |
:checkbox | $(":checkbox") | 所有 type="checkbox" 的 <input> 元素 |
:submit | $(":submit") | 所有 type="submit" 的 <input> 元素 |
:reset | $(":reset") | 所有 type="reset" 的 <input> 元素 |
:button | $(":button") | 所有 type="button" 的 <input> 元素 |
:image | $(":image") | 所有 type="image" 的 <input> 元素 |
:file | $(":file") | 所有 type="file" 的 <input> 元素 |
:enabled | $(":enabled") | 所有激活的 input 元素 |
:disabled | $(":disabled") | 所有禁用的 input 元素 |
:selected | $(":selected") | 所有被选取的 input 元素 |
:checked | $(":checked") | 所有被选中的 input 元素 |
伪类 | 例子 | 例子描述 |
---|---|---|
:active | a:active | 选择活动链接 |
:any-link | a:anylink | 选择所有带有 href 属性的 <a> 或 <area> 元素。 |
:auto-fill | input:autofill | 选择所有由浏览器自动填充值的 <input> 元素。 |
:checked | option:checked | 匹配所有被选中的 <input> 或 <option> 元素。 |
:default | input:default | 选择一组相关元素中的默认表单元素。 |
:defined | :defined | 选择所有已定义的元素(标准或自定义元素)。 |
:dir() | :dir(rtl) | 选择具有指定文本方向的元素。 |
:disabled | option:disabled | 选择所有被禁用的元素,常用于表单元素。 |
:empty | div:empty | 选择所有没有子元素(包括文本节点)的元素。 |
:enabled | input:enabled | 选择所有启用的元素,常用于表单元素。 |
:first | @page :first | 表示打印文档的第一页(与 @page 规则一起使用)。 |
:first-child | p:first-child | 选择作为其父元素第一个子元素的元素(在一组兄弟元素中)。 |
:first-of-type | li:first-of-type | 选择一组兄弟元素中第一个特定类型的元素。 |
:focus | select:focus | 选择获得焦点的元素,常用于表单元素。 |
:focus-visible | button:focus-visible | 选择获得焦点的元素(仅在通过键盘而非鼠标聚焦时应用焦点样式)。 |
:focus-within | form:focus-within | 匹配元素或其任何后代获得焦点的元素。 |
:fullscreen | :fullscreen | 选择当前处于全屏模式的元素。 |
:has() | h2:has(+p) | 选择紧接在 <p> 元素后的 <h2> 元素,并将样式应用于 <h2>。 |
:hover | a:hover | 选择鼠标悬停的元素。 |
:in-range | input:in-range | 选择值在指定范围内的 <input> 元素。 |
:indeterminate | input:indeterminate | 选择处于不确定状态的表单元素。 |
:invalid | input:invalid | 选择无效的表单元素。 |
:is() | :is(ul, ol) | 选择所有 <ul> 和 <ol> 元素。 |
:lang() | p:lang(it) | 选择 lang 属性为 "it"(意大利语)的 <p> 元素。 |
:last-child | li:last-child | 选择作为其父元素最后一个子元素的 <li> 元素。 |
:last-of-type | p:last-of-type | 选择作为其父元素最后一个 <p> 元素的 <p> 元素。 |
:left | @page :left | 表示打印文档的所有左侧页面(与 @page 规则一起使用)。 |
:link | a:link | 选择所有未访问的链接。 |
:modal | :modal | 选择处于模态状态的元素。 |
:not() | :not(p) | 选择所有不是 <p> 元素的元素。 |
:nth-child() | p:nth-child(2) | 选择作为其父元素第二个子元素的 <p> 元素。 |
:nth-last-child() | p:nth-last-child(2) | 选择作为其父元素倒数第二个子元素的 <p> 元素。 |
:nth-last-of-type() | p:nth-last-of-type(2) | 选择作为其父元素倒数第二个 <p> 元素的 <p> 元素。 |
:nth-of-type() | p:nth-of-type(2) | 选择作为其父元素第二个 <p> 元素的 <p> 元素。 |
:only-child | p:only-child | 选择作为其父元素唯一子元素的 <p> 元素。 |
:only-of-type | p:only-of-type | 选择作为其父元素唯一 <p> 元素的 <p> 元素。 |
:optional | textarea:optional | 选择没有 required 属性的 <input>、<select> 或 <textarea> 元素。 |
:out-of-range | input:out-of-range | 选择值超出指定范围的 <input> 元素。 |
:placeholder-shown | input:placeholder-shown | 选择当前显示占位符文本的 <input> 或 <textarea> 元素。 |
:popover-open | :popover-open | 选择处于显示弹出状态的元素。 |
:read-only | input:read-only | 选择带有 readonly 属性的输入元素。 |
:read-write | input:read-write | 选择可编辑的输入元素。 |
:required | input:required | 选择带有 required 属性的输入元素。 |
:right | @page :right | 表示打印文档的所有右侧页面(与 @page 规则一起使用)。 |
:root | :root | 选择文档的根元素。 |
:scope | :scope | 选择作为选择器匹配参考点或范围的元素。 |
:state() | :state() | 选择具有指定自定义状态的自定义元素。 |
:target | :target | 选择当前活动的目标元素。 |
:user-invalid | :user-invalid | 选择具有无效值的表单元素(在用户与其交互后)。 |
:user-valid | :user-valid | 选择具有有效值的表单元素(在用户与其交互后)。 |
:valid | input:valid | 选择所有具有有效值的输入元素。 |
:visited | a:visited | 选择所有已访问的链接。 |
:where() | :where(ol, ul) | 选择所有 <ul> 和 <ol> 元素。 |
下载信息 [文件大小:2.75 KB 下载次数: 次] |
![]() |
.deal_sell4 input{ text-align: right; color: #555; font-size: 0.92rem; } .deal_sell4 input::-webkit-input-placeholder{ font-size: 0.88rem; color: #cccccc;} .deal_sell4 input:-moz-placeholder{ font-size: 0.88rem; color: #cccccc;} .deal_sell4 input::-moz-placeholder{ font-size: 0.88rem; color: #cccccc;} .deal_sell4 input:-ms-input-placeholder{ font-size: 0.88rem; color: #cccccc;}
wx.pageScrollTo({ scrollTop: 0, // 滚动到页面的顶部位置 });
onShareAppMessage: function () { let that = this return { title: that.data.share.title, path: '/pages/index/index', imageUrl: that.data.share.photo } },
百度地图---->腾讯地图
function txMap(lng,lat){ let pi = 3.14159265358979324 * 3000.0 / 180.0; let x = lng - 0.0065; let y = lat - 0.006; let z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * pi); let theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * pi); lng = z * Math.cos(theta); lat = z * Math.sin(theta); return { 'lng': lng, 'lat': lat }; }
腾讯地图---->百度地图
function txMap_to_bdMap(lat,lng){ let pi = 3.14159265358979324 * 3000.0 / 180.0; let x = lng; let y = lat; let z =Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * pi); let theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * pi); lng = z * Math.cos(theta) + 0.0065; lat = z * Math.sin(theta) + 0.006; return {'lng':lng,'lat':lat}; }