Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537
們在做前端開發(fā)的時候經(jīng)常要用到表單輸入框,有強(qiáng)迫癥的網(wǎng)友會發(fā)現(xiàn)這樣一個問題,當(dāng)我們選中了輸入框之后,會發(fā)現(xiàn)輸入框有一個藍(lán)色的邊框,超級low的,像這樣:
其實(shí)像這種藍(lán)色框不單單輸入框有,好像幾乎所有的表單元素都有,像下拉菜單、按鈕、單選框、復(fù)選框等通通有這個問題,那有什么可以去掉這個這么low的藍(lán)邊框呢?其實(shí)只要一個屬性就好了,就是 outline 屬性,那么我們在用表單的時候可以這樣寫:
就是把你要去掉藍(lán)色邊框的表單元素的 outline 屬性設(shè)置為 none 或 0 就可以了,這樣藍(lán)色邊框就沒有了,有需要的可以試試哦。
謝謝你的閱讀,如果你有更好的方法或在應(yīng)用過程中遇到問題可以在評論區(qū)提問或者直接私信我,我會定期回復(fù),碼農(nóng)劉小橋與你一起學(xué)習(xí),共同進(jìn)步。
段JavaScript腳本程序, 負(fù)責(zé)關(guān)閉窗口, 如果網(wǎng)頁不是通過腳本程序打開的(window.open()), 調(diào)用window.close()腳本關(guān)閉窗口前, 必須先將window.opener對象置為null,
否則瀏覽器(IE7、IE8)會彈出一個確定關(guān)閉的對話框。
解決方案有以下幾種方法:
1.指向自己關(guān)閉法
<script language="javaScript">
function closeWindow()
{
window.opener = null;
window.open(' ', '_self', ' ');
window.close();
}
</script>
<input type='button' value='關(guān)閉窗口' onClick="closeWindow()">
2.框架top關(guān)閉法
<script language="javaScript">
function closeWindow()
{
window.opener = null;
window.open('', '_top', '');
window.parent.close();
}
</script>
<input type='button' value='關(guān)閉窗口' onClick="closeWindow()">
3.另外還有一種網(wǎng)上常用的方法, 不過似乎對IE8不起作用但在IE6上是中簡單的直接關(guān)閉的方法
*請認(rèn)真填寫需求信息,我們會在24小時內(nèi)與您取得聯(lián)系。