在html頁(yè)面中寫(xiě)一行代碼實(shí)現(xiàn)發(fā)送郵件功能
<a href="mailto:XXX@163.com">Email</a>
點(diǎn)擊email鏈接沾凄,給XXX@163.com發(fā)送郵件,系統(tǒng)會(huì)自動(dòng)調(diào)用outlook,如果沒(méi)有裝的話屡穗,那只有自己看一下了
百度商橋代碼
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://#/hm.js?xxxxxxxxxxxx";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
input光標(biāo)的大小和line-height
是一樣的,設(shè)置時(shí)注意一下
注意設(shè)置文字超出部分省略摊聋,不然后臺(tái)導(dǎo)入數(shù)據(jù)后就超出了
//適用于單行文本
display:block;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
table表格去除雙邊框改為單邊框方法
table {
border-collapse: collapse;
}
td {
border: 1px solid #dbdbdb;
}
英文超出折行
p{
word-wrap: break-word;
word-break: normal;
}
超大圖片定高展示
.banner{
display: block;
height: 480px;
position: absolute;
left: 50%;
transform: translate(-50%);
}
重定向
window.location.;
子頁(yè)面設(shè)置父級(jí)頁(yè)面ifream的高度
$(function(){
setTimeout(function(){
var xzc_wh = $(document).height();
$('#tab1', window.parent.document).css({
height:xzc_wh
})
},500);
})
jquery父級(jí)頁(yè)面獲取子級(jí)頁(yè)面元素
$(iframe).contents().find("#childnode");
QQ瀏覽器不兼容vh鸡捐、vw的處理辦法
//100vh
#wrapper{
width:100%;
position:absolute;
top:0;
bottom:0;
right:0;
}