class industrySolution extends HTMLElement { constructor() { super(); const shadow = this.attachShadow({ mode: "open" }); const doc = `
`; const style = document.createElement("style"); style.textContent = ` @media screen and (max-width: 480px) { .mobile-bfc { overflow: hidden; height: auto !important; min-height: auto !important; width: 100% !important; min-width: auto !important; margin: 0 !important; padding: 0 !important; display: block !important; position: static !important; } .mobile-title { font-size: 24px !important; padding: 10px 20px !important; margin: 0px !important; text-align: center !important; line-height: 30px !important; } .mobile-width-100 { width: 100% !important; } } h2 { font-size: 16px; font-weight: normal; margin: 0; } p { margin: 0; } a { text-decoration: none; } .solution { padding: 40px 0 24px 0; text-align: center; } .solution-title { font-size: 32px; font-weight: 500; color: #181c25; line-height: 42px; margin-bottom: 24px; } .solutions { width: 1200px; margin: auto; display: flex; flex-wrap: wrap; justify-content: space-around; } .item { width: 288px; height: 170px; background: #ffffff; border-radius: 4px; border: 1px solid #dee1e6; margin-bottom: 16px; } .item-icon { margin-top: 43px; margin-bottom: 22px; width: 48px; height: 48px; display: inline-block; } .item-title { font-size: 24px; font-weight: 500; color: #181c25; line-height: 34px; } `; shadow.innerHTML = doc; shadow.appendChild(style); } } customElements.define("industry-solution", industrySolution);