-
Thủ thuật▼
Thủ thuật khác
-
Giải trí▼
-
Khanh's blog▼
Thứ Sáu, 7 tháng 11, 2014
Home
»
thủ thuật blogspot
» 6 mẫu ô tìm kiếm đẹp cho blog
6 mẫu ô tìm kiếm đẹp cho blog
Views:
Views:
Khung search sẽ giúp độc giả dễ dàng tìm kiếm một nội dung nào đó trên blog của bạn, Blogger đã cung cấp cho chúng ta sẵn một mẫu khung search nhưng nó không đẹp lắm. Hôm nay, mình xin giới thiệu với các bạn 6 mẫu khung search rất đẹp.
#Thêm HTML/Javascrip
1. Đăng nhập Blogger2. > Bố cục > Thêm tiện ích > HTML/Javascrip
3. > Chọn 1 trong 6 code tương ứng với 6 style ở dưới và dán vào
4. > Save
#Code
- Style 1
<style> #searchbox { background: #d8d8d8; border: 4px solid #e8e8e8; padding: 20px 10px; width: 250px; } input:focus::-webkit-input-placeholder { color: transparent; } input:focus:-moz-placeholder { color: transparent; } input:focus::-moz-placeholder { color: transparent; } #searchbox input { outline: none; } #searchbox input[type="text"] { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLOoJwqgSs9uRWw_-njVsIvRyBL35f9t59Hr8nC5e9itzj4rPFk43iMyPBi-VOesCZWU9JvqXgl9GFoiwys_CdqMYfSLFJakD22cPgb850th6EHO7JzzGZAJJOZsXhrtq3slc-H2oxMNT-/s1600/search-dark.png) no-repeat 10px 6px #fff; border-width: 1px; border-style: solid; border-color: #fff; font: bold 12px Arial,Helvetica,Sans-serif; color: #bebebe; width: 55%; padding: 8px 15px 8px 30px; } #button-submit { background: #6A6F75; border-width: 0px; padding: 9px 0px; width: 23%; cursor: pointer; font: bold 12px Arial, Helvetica; color: #fff; text-shadow: 0 1px 0 #555; } #button-submit:hover { background: #4f5356; } #button-submit:active { background: #5b5d60; outline: none; } #button-submit::-moz-focus-inner { border: 0; } </style> <form id="searchbox" method="get" action="/search"> <input name="q" type="text" size="15" placeholder="Type here..." /> <input id="button-submit" type="submit" value="Search" /> </form>
- Style 2
<style> #searchbox { width: 240px; } #searchbox input { outline: none; } input:focus::-webkit-input-placeholder { color: transparent; } input:focus:-moz-placeholder { color: transparent; } input:focus::-moz-placeholder { color: transparent; } #searchbox input[type="text"] { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLOoJwqgSs9uRWw_-njVsIvRyBL35f9t59Hr8nC5e9itzj4rPFk43iMyPBi-VOesCZWU9JvqXgl9GFoiwys_CdqMYfSLFJakD22cPgb850th6EHO7JzzGZAJJOZsXhrtq3slc-H2oxMNT-/s1600/search-dark.png) no-repeat 10px 13px #f2f2f2; border: 2px solid #f2f2f2; font: bold 12px Arial,Helvetica,Sans-serif; color: #6A6F75; width: 160px; padding: 14px 17px 12px 30px; -webkit-border-radius: 5px 0px 0px 5px; -moz-border-radius: 5px 0px 0px 5px; border-radius: 5px 0px 0px 5px; text-shadow: 0 2px 3px #fff; -webkit-transition: all 0.7s ease 0s; -moz-transition: all 0.7s ease 0s; -o-transition: all 0.7s ease 0s; transition: all 0.7s ease 0s; } #searchbox input[type="text"]:focus { background: #f7f7f7; border: 2px solid #f7f7f7; width: 200px; padding-left: 10px; } #button-submit{ background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHT8DMGbB7F2KPSE4QRYeg3YD3aVAtjw4-QND1RlHEHhucqyJlYGPYA_wKt3a59NHLxwiFzHzMquhBDvZObsyR5FtHGgkVktEkQj_PmWsVcuO1G60NieUGLFl5J2d7xqbdoz31EPOzo1Mf/s1600/slider-arrow-right.png) no-repeat; margin-left: -40px; border-width: 0px; width: 43px; height: 45px; } </style> <form id="searchbox" method="get" action="/search" autocomplete="off"> <input name="q" type="text" size="15" placeholder="Enter keywords here..." /> <input id="button-submit" type="submit" value=" "/> </form>
- Style 3
<style> #searchbox { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbsveFIlGHb24eqj-aclcXtjcYQkfyFNikNH-IxtRLxfwHAmJJvky4Eu03I11asAsGhvLcDVAQAdh2b9vxVIbTwxhhxY85bsBKIDf-qt8VgS6NY2YSF-OsBLU-sHttntVluX4pq4MCRuVt/s1600/searchbar.png) no-repeat; width: 208px; height: 29px; } input:focus::-webkit-input-placeholder { color: transparent; } input:focus:-moz-placeholder { color: transparent; } input:focus::-moz-placeholder { color: transparent; } #searchbox input { outline: none; } #searchbox input[type="text"] { background: transparent; margin: 3px 0px 0px 20px; padding: 5px 0px 5px 0px; border-width: 0px; font-family: "Arial Narrow", Arial, sans-serif; font-size: 12px; color: #828282; width: 70%; display: inline-table; vertical-align: top; } #button-submit { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXVQRKfBP82MgbhXCjh0Nevvwl_1Nt_uJzuVR-xeQR4nXJrdGgfpi-4LpKmS166JHSwbJfUNFmwk0EVAkYwHhYgO3hlG22IYGhmiQYX-WxD_Iz9OtdxeiWvM0NcUTJm7R_2-bCKojpoVSx/s1600/magnifier.png) no-repeat; border-width: 0px; cursor: pointer; margin-left: 10px; margin-top: 4px; width: 21px; height: 22px; } #button-submit:hover { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje2LIO-C1b85VFV2FsVuJ8MlUQwpgF1SBCGi44Jw0lKqP7Atcv_3f_tF6-HI5_-TKI2EsJ2bJ31Dib-O5pLKFOloszAOBLa9-05R2ZyzSbgMA8fndhIdDeHsPoCjTbgNiTYAMfHYF1zr-8/s1600/magnifier-hover.png) no-repeat; } #button-submit:active { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje2LIO-C1b85VFV2FsVuJ8MlUQwpgF1SBCGi44Jw0lKqP7Atcv_3f_tF6-HI5_-TKI2EsJ2bJ31Dib-O5pLKFOloszAOBLa9-05R2ZyzSbgMA8fndhIdDeHsPoCjTbgNiTYAMfHYF1zr-8/s1600/magnifier-hover.png) no-repeat; outline: none; } #button-submit::-moz-focus-inner { border: 0; } </style> <form id="searchbox" method="get" action="/search" autocomplete="off"> <input name="q" type="text" size="15" placeholder="search..." /> <input id="button-submit" type="submit" value="" /> </form>
- Style 4
<style> #searchbox { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9X-ngFswASFh-26Bi1O5tNtWDoBeMOtkPOjfy6_RA2PzaU-T-EnpsQkpDFPeZTFFrQzNLQzxEqPUcrVcH9nHNaZttK3JagX-lbPmHPEA1B2HAx0qHiJ2VbelxRSEri7gtSteILMf07JUq/s1600/search-box.png) no-repeat; height: 27px; width: 202px; } input:focus::-webkit-input-placeholder { color: transparent; } input:focus:-moz-placeholder { color: transparent; } input:focus::-moz-placeholder { color: transparent; } #searchbox input { outline: none; } #searchbox input[type="text"] { background: transparent; margin: 0px 0px 0px 12px; padding: 5px 0px 5px 0px; border-width: 0px; font-family: "Arial Narrow", Arial, sans-serif; font-size: 12px; font-style: italic; width: 77%; color: #828282; display: inline-table; vertical-align: top; } #button-submit { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA4E5sufMQ3D3L4EFBI1iKqgk4Yw8LTciHa3fvuwjbiE_PJYNvYghys7317S62A2BGauShvPD1Ag7sS5cUgoniVKwOL8lLPH0SEmXikdINVaA-La0nqywEBJbgSNSGkQ1x_fd4OZwMmqWb/s1600/search-button.png) no-repeat; border-width: 0px; cursor: pointer; width: 30px; height: 25px; } #button-submit:hover { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV3HMeCsXJO_GQVgAAshgl5pHv0zygFMeGhjC1sIEo5M_q_ByaD3kut580QrRC0kUF_b_y1PVq_vga8FUhmXH0ygidS1QFVpIVDedc2fiJPACWUSdDK2uQ2h6X0UWaopbEq4jj0fUnJD9k/s1600/search-button-hover.png) no-repeat; } #button-submit::-moz-focus-inner { border: 0; } </style> <form id="searchbox" method="get" action="/search" autocomplete="off"> <input name="q" type="text" size="15" placeholder="search..." /> <input id="button-submit" type="submit" value="" /> </form>
- Style 5
<style> #searchbox { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrD25nT9zbDK2KpNS70u8hiKDRFuu6GOdTk6YqOJMcqsNW5uD_MB8_c2HuFABSA_UrPnbUqQoWjJQel-HHa3k5jzi_1Tm3YTg7684Y0SC-MIX8yPm7dF9e41MGSEM1Qh_TF_NzXdTcJWh3/s1600/search-box1.png) no-repeat; width: 250px; height: 65px; } input:focus::-webkit-input-placeholder { color: transparent; } input:focus:-moz-placeholder { color: transparent; } input:focus::-moz-placeholder { color: transparent; } #searchbox input { outline: none; } #searchbox input[type="text"] { background: transparent; padding: 5px 0px 5px 20px; margin: 10px 15px 0px 0px; border-width: 0px; font-family: "Brush Script MT", cursive; font-size: 12px; color: #595959; width: 65%; font-weight: bold; display: inline-table; vertical-align: top; } #button-submit { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-YjOwCtrnfIhyDxjKRAkMm8n7rMBs86NoJ2dSrUtgCnd-le1wMe0WUgru_S_sJv12yCQJPDqfOWKQGHQIMVLCit18F0_faUnvQ24vik1WeQQ0qfnMIVjdb2ofAPFrKUJjE4U3dzVi8cvv/s1600/magnifier.png) no-repeat; border-width: 0px; cursor: pointer; margin-top: 10px; width: 19px; height: 25px; } #button-submit:hover { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgempwBoHZw67c8cIxVpvrQdtdSatUh90AUYHCfzf2rTddD0QoG-SqxbZd2GjqHUI9ntTqh40GT79rvo_Gu2_Zz1EPYU8ejvRWsemaeMWEdnXu_lU1Iu05TJeILVuDCZ7_8SSV8Sa50Bi29/s1600/magnifier-hover.png) no-repeat; } #button-submit:active { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgempwBoHZw67c8cIxVpvrQdtdSatUh90AUYHCfzf2rTddD0QoG-SqxbZd2GjqHUI9ntTqh40GT79rvo_Gu2_Zz1EPYU8ejvRWsemaeMWEdnXu_lU1Iu05TJeILVuDCZ7_8SSV8Sa50Bi29/s1600/magnifier-hover.png) no-repeat; outline: none; } #button-submit::-moz-focus-inner { border: 0; } </style> <form id="searchbox" method="get" action="/search" autocomplete="off"> <input class="textarea" name="q" type="text" size="15" placeholder="Search here..." /> <input id="button-submit" type="submit" value="" /> </form>
- Style 6
style> #searchbox { width: 280px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixi7LTk8TYHWWRMAbphYi6DURAYRuEaQoKZgixHoh3IjM2dFNjJGWFP50QRQZssoRV1Ic_VhuTDmIJdcGkrmiPCUN34isxDbsAnTwxBCJDmJ3-FJWbPUSIIJDnKP4hhTvBBE0uN_VzZgAB/s1600/search-box.png) no-repeat; } #searchbox input { outline: none; } input:focus::-webkit-input-placeholder { color: transparent; } input:focus:-moz-placeholder { color: transparent; } input:focus::-moz-placeholder { color: transparent; } #searchbox input[type="text"] { background: transparent; border: 0px; font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif; font-size: 14px; color: #f2f2f2 !important; padding: 10px 35px 10px 20px; width: 220px; } #searchbox input[type="text"]:focus { color: #fff; } #button-submit{ background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1qAZQhQd37czMyqWpeBG8RdkxaYMd4QJs6TfVW2Xj3hMyVmVA32mKqF9L37qscm4FYC2F1PfGBK2kFXakIx7-jpZtTybX7MvUCfn-cTg4e2XlEjh9b_UdhAtNexBH0DcopYsdrCmwx7T-/s1600/search-icon.png) no-repeat; margin-left: -40px; border-width: 0px; width: 40px; height: 50px; } #button-submit:hover { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjek9KTqsDhz87p5cr-_BdNcbVxwOBlR0ujW-fC2ub74oc6mIpO5M0Aucx-Hfk2O9-Hcb_nZ2vQf10wzMcGsehBqE_SvQ_JXjW4Om9f6kl-JVIyuvtjZyvEZThUcNw7ijEsWz-fKUey7jLU/s1600/search-icon-hover.png); } </style> <form id="searchbox" method="get" action="/search" autocomplete="off"> <input name="q" type="text" size="15" placeholder="Enter keywords here..." /> <input id="button-submit" type="submit" value=" "/> </form>
Nguồn Heplogger
Quoc Khanh Bui
: Một blogger nghiệp dư. Chuyên viết về các thủ thuật blog
Bài Liên Quan
Đăng ký:
Đăng Nhận xét (Atom)
1 nhận xét:
khanh98.blogspot.com
ReplyĐăng nhận xét