-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add favorite & 收藏夹 & html-imports & dynamic-imports #55
Comments
shit IE
> `border-collapse: collapse;`
table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
font-size: 13px;
font-weight: normal;
overflow: hidden;
margin-bottom: 15px;
color: #727272;
}
IE table border border-collapse bug?https://stackoverflow.com/questions/16682591/border-collapse-not-working-in-ie10 table{
border-collapse: collapse;
}
table td{
border: 1px solid black;
}
table{
border-spacing: 0px;
border-top: 1px solid black;
border-right: 1px solid black;
}
table td{
border-left: 1px solid black;
border-bottom: 1px solid black;
} https://stackoverflow.com/questions/15747859/border-not-appearing-in-ie9-ie10 table{
border-top:1px solid #000;
}
tr{
border-left:1px solid #000;
border-bottom:1px solid #000;
}
td{
border-right:1px solid #000;
} https://stackoverflow.com/questions/19706555/ie-table-cell-border-bug-with-colspan-set |
IE border-collapse bughttps://css-tricks.com/almanac/properties/b/border-collapse/ |
solution/* IE & shit table & border-collapse: collapse; */
table>tr>td:nth-of-type(n) {
border-left: 0;
border-bottom: 0;
}
table {
border-spacing: 0px;
border-top: 1px solid #f0f0f0;
border-right: 0;
}
table td {
border-left: 1px solid #f0f0f0;
border-bottom: 0;
border-right: 0;
}
tbody>tr>td:nth-last-of-type(1) {
border-right: 1px solid #f0f0f0;
}
tbody>tr:nth-last-of-type(1)>td {
border-bottom: 1px solid #f0f0f0;
} |
shit IE
/* IE & shit table & border-collapse: collapse; */
table {
border-spacing: 0px;
border-top: 1px solid #f0f0f0;
border-right: 0;
}
table td {
border-left: 1px solid #f0f0f0;
border-bottom: 0;
border-right: 0;
}
tbody>tr>td:nth-last-of-type(1) {
border-right: 1px solid #f0f0f0;
}
tbody>tr:nth-last-of-type(1)>td {
border-bottom: 1px solid #f0f0f0;
}
tbody>tr:nth-of-type(2n) {
background: #f5f5f5;
}
tbody>tr:nth-of-type(2n + 1) {
background: #fff;
}
tbody[id="tbody2"]>tr:nth-of-type(n) {
background: #fff;
}
|
https://github.com/webcomponents/webcomponentsjs/blob/v1/package.json
https://github.com/webcomponents/webcomponentsjs/blob/v1/gulpfile.js |
"use strict";
/**
*
* @author xgqfrms
* @license MIT
* @copyright xgqfrms
*
* @description HTMLImportsTest
* @augments
* @example
*
*/
// no need jQuery
let $$ = {
qs: function qs(uid) {
return document.querySelector(uid);
},
qsa: function qsa(uid) {
return document.querySelectorAll(uid);
},
};
window.$ = $$;
// if (window.$) {
// window.$ = Object.assign($, $$);
// } else {
// window.$ = Object.assign({}, $$);
// }
function loadTemplate () {
let templatesBox = document.querySelector('[data-template="template-container"'),
link = document.querySelector('link[data-rel="containers"]'),
// #document
template = link ? link.import : null,
div = template ? template.querySelector('[data-div="templates-containers"]') : null;
if (div) {
// read template once
templatesBox.appendChild(div);
} else {
// exsit template
}
};
function showDOM () {
let container = $.qs('[data-test="html-template"]'),
temp = $.qs('[data-template="template-containers-full-width"]'),
clone = temp ? temp.content.cloneNode(true) : null;
if (clone) {
container.appendChild(clone);
}
};
let uid = document.querySelector('[data-uid="result"]');
if (Modernizr.htmlimports) {
// supported
uid.innerHTML = '<span class="htmlimports">supported<span>';
} else {
// not-supported
uid.innerHTML = '<span class="no-htmlimports">not-supported<span>';
}
// DOM fully loaded and parsed!
document.addEventListener("DOMContentLoaded", function () {
setTimeout(function () {
if (Modernizr.htmlimports) {
// preload && delay
loadTemplate();
// init
showDOM();
} else {
// not-supported
alert("template is not supported!");
}
}, 100);
});
|
table width bug
|
Online IDE powered by Visual Studio Codehttps://stackblitz.com/ https://github.com/stackblitz/core Public URLs for exposing your local web server.https://ngrok.com/ |
Video Downloader Plushttps://chrome.google.com/webstore/detail/video-downloader-plus/baejfnndpekpkaaancgpakjaengfpopk The Flash Video Downloaderhttps://chrome.google.com/webstore/detail/the-flash-video-downloade/amjcoehkcacocffpmhnefgoeanepjfkf |
Game Bar & YouTube video records
C:\Users\xgqfrms\Videos\Captures Win + G Win + Alt + M Win + Alt + PrtSrc |
html-imports & dynamic-importshttps://github.com/webcomponents/html-imports#dynamic-imports |
CMD & current folder path
https://stackoverflow.com/questions/25438172/find-path-of-current-folder-cmd Bash
https://stackoverflow.com/questions/4419868/what-is-the-current-directory-in-a-batch-file |
Web Component & HTML imports |
ESM & import() & dynamic import All In One作者:xgqfrms |
add favorite & 收藏夹
The text was updated successfully, but these errors were encountered: