解决<a><img>出现边框

博客介绍了使用CSS设置样式的内容,具体展示了通过代码“a img{border:0px;}”来去除图片边框,属于前端开发中CSS样式设置的应用。
设置样式
a img{border:0px;}
<php> $affected_tooling = is_array($list['affected_tooling']) ? $list['affected_tooling'] : explode(',', $list['affected_tooling']); </php> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>Internal Engineering Change Notice (ECN) Requests</title> <style> .container { margin: auto; border: 1px solid #ccc; padding: 20px 20px 0px 20px; font-family: Arial, sans-serif; } h2 { text-align: center; } .header { display: flex; /* justify-content: space-between; */ align-items: center; margin-bottom: 20px; } .header-info { font-size: 14px; } .form-group { display: flex; margin-bottom: 15px; } /* 容器样式 */ .form-row { justify-content: space-between; /* 让子元素分布在两侧 */ display: flex; gap: 5px; /* 列之间的间距 */ margin-bottom: 15px; } .form-row .form-group { display: flex; } label { display: inline-block; width: 300px; font-weight: normal; } input[type="text"], input[type="date"], input[type="time"] { width: 200px; padding: 5px; } .checkbox-group { display: flex; align-items: center; } /* 控制复选框组内部间距 */ .checkbox-group label { margin-right: 5px; /* 每个复选框之间的间距 */ width: 60px; } .checkbox-group label { font-weight: normal; margin-right: 5px; } .section { margin-top: 20px; padding-top: 10px; border-top: 1px solid #ccc; } .footer { margin-top: 30px; display: flex; justify-content: space-between; font-size: 12px; color: #555; } .col { display: flex; align-items: center; white-space: nowrap; } .col input[type="text"] { padding: 2px; box-sizing: border-box; } .col label { white-space: nowrap; margin-right: 1px; } .approval-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-weight: normal; } .approval-table th, .approval-table td { padding: 10px; border: 1px solid #ccc; vertical-align: top; } .approval-table th { background-color: #f5f5f5; text-align: left; } .checkbox-container { display: flex; flex-wrap: wrap; gap: 15px; } .checkbox-row { display: flex; align-items: center; gap: 10px; flex: 0 0 48%; /* 控制每行两个选项 */ } .checkbox-row.full-width { flex: 0 0 100%; /* Others 行占满整行 */ } .checkbox-row input[type="text"] { flex: 1; padding: 5px; width: 200px; } .checkbox-row label { font-weight: normal; white-space: nowrap; } .footer-page-break { /*分页,兼容旧浏览器*/ page-break-after: always; } .center-text { display: flex; justify-content: center; /* 水平居中 */ align-items: center; /* 垂直居中 */ } label span { font-weight: normal; text-decoration: underline; } </style> </head> <body> <div> <div class="center-text"> <div style="width:980px;text-align:left;"> <div class="container" layoutH="56"> <div class="header" style="display: flex; justify-content: space-between; align-items: center;"> <img src="__PUBLIC__/Images/logo.gif" alt="Logo" style="height: 50px;"> <strong>TCN No:{$list.tcn_no} </strong> </div> <div class="header" style="justify-content: center;"> <h2>Tooling Change Notice (TCN)</h2> </div> <div class="form-group"> <!-- 第一列:Requested by --> <div class="col"> <label>Requested by #:<span>{$list.requested_by}</span></label> </div> <!-- 第二列:单选 --> <div class="col checkbox-group" style="justify-content: flex-start; padding-left: 5px;"> <label> <input type="radio" name="requested_department" id="ME" value="ME" <if condition="$list.requested_department eq 'ME'">checked</if>/> <label for="ME" style="margin-left: 1px;">ME</label> </label> <label> <input type="radio" name="requested_department" id="PE" value="PE" <if condition="$list.requested_department eq 'PE'">checked</if>/> <label for="PE" style="margin-left: 1px;">PE</label> </label> <label> <input type="radio" name="requested_department" id="QA" value="QA" <if condition="$list.requested_department eq 'QA'">checked</if> /> <label for="QA" style="margin-left: 1px;">QA</label> </label> <label> <input type="radio" name="requested_department" id="PMC" value="PMC" <if condition="$list.requested_department eq 'PMC'">checked</if> /> <label for="PMC" style="margin-left: 1px;">PMC</label> </label> </div> </div> <!-- 下一行:Date --> <div style="margin-top: 15px;"> <label>Issue Date (MM/DD/YYYY):<span>{$list.issue_date}</span></label> </div> <div class="section"> <h4>Part A: General Project and Change Information (Fill by Requestor):</h4> <div class="form-row"> <label>PNG Part No.:<span>{$list.png_part_no}</span></label> <label style="margin-left: 10px;">Customer:<span>{$list.customer}</span></label> <div class="form-group"> <label>W/O:<span>{$list.wo}</span></label> </div> </div> </div> <div class="section"> <h4>Part B: Change Description (Fill by Requestor):</h4> <div class="form-group"> <label>Purpose:</label> <div class="col"> <label> <input type="radio" name="purpose_option" id="Tooling Update" value="Tooling Update" <if condition="$list.purpose_option eq 'Tooling Update'">checked</if> /> <label for="Tooling Update" style="margin-left: 1px;width: 100px;">Tooling Update</label> </label> <label> <input type="radio" name="purpose_option" id="Test tooling" value="Test tooling" <if condition="$list.purpose_option eq 'Test tooling'">checked</if>/> <label for="Test tooling" style="margin-left: 1px;">Test tooling</label> </label> <label> <input type="radio" name="purpose_option" id="Rework tooling" value="Rework tooling" <if condition="$list.purpose_option eq 'Rework tooling'">checked</if> /> <label for="Rework tooling" style="margin-left: 1px;">Rework tooling</label> </label> </div> </div> <div class="form-group"> <label>Reason of change:</label> <textarea name="reason_of_change" id="reason_of_change" rows="3" cols="82" lookupGroup="LookupCCEmail" look_name="LookupCCEmail.orgName">{$list.reason_of_change}</textarea> </div> <div class="form-group"> <label>Tooling change description:</label> <textarea name="tooling_change_description" id="tooling_change_description" rows="3" cols="82" lookupGroup="LookupCCEmail" look_name="LookupCCEmail.orgName">{$list.tooling_change_description}</textarea> </div> <div class="form-group" style="display: block;"> <label style="width: 300px;">Remarks / Affected process:</label> <h5>Affected tooling:</h5> <div class="checkbox-container"> <!-- 每行两个复选框 --> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="inner_ldi" value="inner_ldi" <if condition="in_array('inner_ldi', $affected_tooling)"> checked="checked"</if>> <label for="inner_ldi">Inner LDI program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="inner_aoi" value="inner_aoi" <if condition="in_array('inner_aoi', $affected_tooling)" >checked</if>> <label for="inner_aoi">Inner layer AOI</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="pluritec" value="pluritec" <if condition="in_array('pluritec', $affected_tooling)" >checked</if>> <label for="pluritec">Pluritec program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="conformal_mask" value="conformal_mask" <if condition="in_array('conformal_mask', $affected_tooling)">checked</if>> <label for="conformal_mask">Conformal mask LDI program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="drill" value="drill" <if condition="in_array('drill', $affected_tooling)" >checked</if>> <label for="drill">Drill program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="hole_laser" value="hole_laser" <if condition="in_array('hole_laser', $affected_tooling)" >checked</if>> <label for="hole_laser">Hole / Laser AOI & Hole counter program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="buttonplate" value="buttonplate" <if condition="in_array('buttonplate', $affected_tooling)" >checked</if>> <label for="buttonplate">Buttonplate / Copper fill LDI program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="outer_ldi" value="outer_ldi" <if condition="in_array('outer_ldi', $affected_tooling)" >checked</if>> <label for="outer_ldi">Outer LDI program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="outer_aoi" value="outer_aoi" <if condition="in_array('outer_aoi', $affected_tooling)" >checked</if>> <label for="outer_aoi">Outer layer AOI</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="solder_mask_di" value="solder_mask_di" <if condition="in_array('solder_mask_di', $affected_tooling)">checked</if>> <label for="solder_mask_di">Solder mask DI program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="solder_mask_avi" value="solder_mask_avi" <if condition="in_array('solder_mask_avi', $affected_tooling)">checked</if>> <label for="solder_mask_avi">Solder mask AVI</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="solder_stencil" value="solder_stencil" <if condition="in_array('solder_stencil', $affected_tooling)">checked</if>> <label for="solder_stencil">Solder mask stencil / printing jig</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="via_filling" value="via_filling" <if condition="in_array('via_filling', $affected_tooling)" >checked</if>> <label for="via_filling">Via filling tool</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="inkjet" value="inkjet" <if condition="in_array('inkjet', $affected_tooling)" >checked</if>> <label for="inkjet">Inkjet</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="laser_mark" value="laser_mark" <if condition="in_array('laser_mark', $affected_tooling)" >checked</if>> <label for="laser_mark">Laser mark</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="routing" value="routing" <if condition="in_array('routing', $affected_tooling)" >checked</if>> <label for="routing">Routing program</label> </div> <div class="checkbox-row"> <input name="affected_tooling[]" type="checkbox" id="etest" value="etest" <if condition="in_array('etest', $affected_tooling)" >checked</if>> <label for="etest">E-Test program / Fixture</label> </div> <!-- Others 行 --> <div class="checkbox-row full-width"> <input name="affected_tooling[]" type="checkbox" id="others_checkbox" value="others_checkbox" <if condition="in_array('others_checkbox', $affected_tooling)">checked</if>> <label for="others_checkbox">Others<span style="margin-left: 10px;">{$list.others_input}</span></label> </div> </div> </div> </div> <div class="section"> <h4>Part C: Running change schedule: (Follow PMC schedule)</h4> <div class="col"> <input type="checkbox" id="running_change_date_option" name="running_change_date_option" <if condition="$list.running_change_date_option" >checked</if>> <label style="width: 400px;margin-left: 10px;" for="running_change_wo_option">Running Change Effective Date & Time:<span>{$list.running_change_date}</span></label> </div> <div class="col"> <input type="checkbox" id="running_change_wo_option" name="running_change_wo_option" <if condition="$list.running_change_wo_option" >checked</if>> <label style="width: 400px;margin-left: 10px;" for="running_change_wo_option">Running Change Effective W/O:<span>{$list.running_change_wo}</span></label> </div> </div> <div class="section"> <h4>Part D: Approval</h4> <table class="approval-table"> <tr> <td>P.E</td> <td>M.E</td> <td>QA</td> </tr> <tr> <td>Date (MM/DD/YYYY):<br> <input type="date" name="pe_approve_date" value="{$list.pe_approve_date}"> <input type="time" name="pe_approve_time" value="{$list.pe_approve_time}"> </td> <td>Date (MM/DD/YYYY):<br> <input type="date" name="me_approve_date" value="{$list.me_approve_date}"> <input type="time" name="me_approve_time" value="{$list.me_approve_time}"> </td> <td>Date (MM/DD/YYYY):<br> <input type="date" name="qa_approve_date" value="{$list.qa_approve_date}"> <input type="time" name="qa_approve_time" value="{$list.qa_approve_time}"> </td> </tr> </table> <div class="footer" style="margin-top: 1px;">Remark:Tooling update only need PE manager approval</div> </div> <div class="footer"> <div>Form No. PEF-005</div> <div>Version: A/2</div> <div>Effective Date: 09/09/2024</div> </div> <div class="footer-page-break"></div> <div class="header" style="display: flex; justify-content: space-between; align-items: center;"> <img src="__PUBLIC__/Images/logo.gif" alt="Logo" style="height: 50px;"> <strong>TCN No: {$list.tcn_no_2} </div> <div class="header" style="justify-content: center;"> <h2>Tooling Change Notice (TCN)</h2> </div> <div class="footer"> <div>Form No. PEF-020</div> <div>Version: A/2</div> <div>Effective Date: 10/28/2024</div> </div> <div class="footer-page-break"></div> <div class="header" style="display: flex; justify-content: space-between; align-items: center;"> <img src="__PUBLIC__/Images/logo.gif" alt="Logo" style="height: 50px;"> <strong>TCN No: ______________ </div> <div class="header" style="justify-content: center;"> <h2>Tooling Change Notice (TCN)</h2> </div> <table class="approval-table"> <thead> <tr> <th>Affected Tooling</th> <th>Recall Tooling PIC</th> <th>Date</th> <th>PIC Signature</th> <th>Confirmed By PE</th> <th>PE Signature</th> <th>Prod.Signature</th> <th>Remarks</th> </tr> </thead> <tbody> <tr> <td>Inner LDI</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Inner AOI</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Pluritec</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Conf. mask LDI</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Drill program</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Hole / Laser AOI and Hole counter</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Buttonplate / Copper fill LDI</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Outer LDI</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Outer AOI</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Solder mask</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>DI</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>SM AVI</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>SM Stencil/Jig</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>RVF Tool</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Inkjet</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Laser mark</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Routing</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>E-test</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>Others</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </tbody> </table> <div class="footer"> <div>Form No. PEF-020</div> <div>Version: A/2</div> <div>Effective Date: 10/28/2024</div> </div> </div> </div> </div> <div class="formBar"> <ul> <li><div class="button"> <div class="buttonContent"><button type="button" onclick="navTab.closeCurrentTab()">关闭</button></div></div></li> <li><div class="buttonActive"><div class="buttonContent"><button type="button" onclick="print()">{$Think.lang.print}</button></div></div></li> </ul> </div> </div> </body> </html> <script language="javascript" type="text/javascript" src="__PUBLIC__/dwz/js/autosize.min.js"></script> <script language="JavaScript"> function print(){ //$("div#myPrintArea").printArea(); window.open('__URL__/printtable/id/{$list.id}'); } $(document).ready(function () { // 禁止所有 radio 按钮被点击修改 $('input[type="radio"]').each(function () { $(this).data('waschecked', $(this).is(':checked')); // 保存原始状态 $(this).on('click', function (e) { e.preventDefault(); // 阻止默认行为 return false; }); }); }); </script> 以上html页面怎么在浏览器打印的时候,左右两边内容显示不全
07-29
* { margin: 0; padding: 0; } body { font-family: "微软雅黑", Arial, sans-serif; font-size: 14px; } .banner { width: 100%; height: 300px; position: relative; } .banner img { width: 100%; height: 300px; object-fit: cover; } .layer { position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); } .banner p { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 45px; text-align: center; } .container { width: 100%; height: 50px; background: darkorange; margin-top: 2px; } .menu { width: 800px; height: 50px; margin: 0 auto; } .menu ul { display: flex; justify-content: space-around; align-items: center; } .menu ul li { list-style: none; } .menu a { text-decoration: none; color: white; padding: 15px 20px; display: block; } .menu a:hover { background: darkgreen; } .footer { width: 800px; height: 400px; margin: 20px auto; display: flex; } .left { flex: 1; background: black; position: relative; } .right { flex: 1; background: #eee; padding: 20px; } .left ul li { list-style: none; border-radius: 100%; border: 1px solid #394; position: absolute; } .sun { width: 20px; height: 20px; background: yellow; top: 185px; left: 190px; border: none; } .shui { width: 60px; height: 30px; top: 165px; left: 170px; animation: myanimation 6s linear infinite; } .shui span { width: 4px; height: 4px; background: blue; display: block; border-radius: 100%; position: absolute; left: 5px; top: 8px; } .earth { width: 130px; height: 130px; top: 130px; left: 135px; animation: myanimation 5s linear infinite; } .earth > span { width: 4px; height: 20px; background: yellow; position: absolute; left: 5px; top: 8px; } .moon { width: 2px; height: 2px; background: rgb(243, 242, 242); position: absolute; top: -4px; left: -4px; display: block; border-radius: 100%; } @keyframes myanimation { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .btn { display: inline-block; padding: 10px 20px; background: #4d92d9; color: white; text-decoration: none; border: 2px solid #4d92d9; transition: all 0.4s; } .btn:hover { background: white; color: #4d92d9; }<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" type="text/css" href="sy2.css" /> </head> <body> <div class="banner"> <div class="img"> <img src="images/1.jpeg"> </div> <div class="layer"></div> <p></p > </div> <div class="container"> <div class="menu"> <ul> <li><a href=" ">首页</a ></li> <li><a href="#">推荐阅读</a ></li> <li><a href="#">历史故事</a ></li> <li><a href="#">代表人物</a ></li> <li><a href="#">代表人物</a ></li> <li><a href="#">体育锻炼</a ></li> <li><a href="#">学习攻略</a ></li> <li><a href="#">头脑风暴</a ></li> </ul> </div> </div> <div class="footer"> <div class="left"> <ul> <li class="sun"></li> <li class="shui"><span></span></li> <li class="jin"><span></span></li> <li class="earth"><span><span class="moon"></span></li> </ul> </div> <div class="right"> </div> </div> </body> </html>帮我完善我现在写的代码完成实验指导书内容
最新发布
11-15
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>音乐主题网页</title> <link rel="shortcut icon" href="images/音乐图标.jpg"/> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; max-width: 1000px; margin: 0 auto; padding: 20px; background-color: #f8f9fa; color: #333; line-height: 1.6; } header { text-align: center; padding: 30px 0; background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } h1, h2, h3 { color: #2c3e50; } h1 { font-size: 2.8rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); } h2 { color: #2575fc; border-bottom: 2px solid #2575fc; padding-bottom: 8px; margin-top: 30px; } section { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 25px; } .highlight { background-color: #eef7ff; padding: 15px; border-left: 4px solid #2575fc; border-radius: 0 8px 8px 0; margin: 20px 0; } table { width: 100%; border-collapse: collapse; margin: 20px 0; } table, th, td { border: 1px solid #ddd; } th, td { padding: 12px; text-align: left; } th { background-color: #eef7ff; } form { background: #f9fafa; padding: 20px; border-radius: 8px; } fieldset { border: 1px solid #ddd; padding: 15px; margin-bottom: 15px; border-radius: 5px; } legend { font-weight: bold; color: #2575fc; } label { display: block; margin: 10px 0 5px; } input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="date"], select, textarea { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; } input[type="checkbox"], input[type="radio"] { margin-right: 5px; } button { background-color: #2575fc; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #1a5fc2; } footer { text-align: center; padding: 20px; color: #666; font-size: 0.9rem; } img[usemap] { border: 2px solid #2575fc; } .link-item { margin: 10px 0; padding: 12px 15px; background-color: #f0f4ff; border-left: 4px solid #2575fc; border-radius: 6px; transition: all 0.3s ease; } .link-item:hover { background-color: #e0e8ff; transform: translateX(5px); } .link-item a { text-decoration: none; color: #2575fc; font-weight: 500; display: flex; align-items: center; gap: 12px; } .link-item i { font-size: 1.2em; width: 24px; text-align: center; } </style> </head> <body> <header> <h1><i class="fas fa-music"></i> 沉浸式音乐体验</h1> <p>探索声音的艺术世界</p > </header> <section id="links"> <h2><i class="fas fa-link"></i> 超链接</h2> <div class="link-item"> <a href="https://www.bilibili.com/" target="_blank"> <i class="fas fa-globe-americas"></i> 网站链接:访问哔哩哔哩 </a > </div> <div class="link-item"> <a href="https://music.163.com/" target="_blank"> <i class="fas fa-globe-americas"></i> 网站链接:访问网易云音乐 </a > </div> <div class="link-item"> <a href="images/音乐会.jpg" target="_blank"> <i class="fas fa-image"></i> 图像链接:查看音乐会大图 </a > </div> <div class="link-item"> <a href="music/我用什么把你留住.mp3" download> <i class="fas fa-download"></i> 下载链接:下载《我用什么把你留住》 </a > </div> <div class="link-item"> <a href="#contact"> <i class="fas fa-anchor"></i> 锚点链接:跳转到音乐爱好者反馈表单 </a > </div> <h3><i class="fas fa-map-marked-alt"></i> 图像热点链接</h3> < img src="images/恋人.png" alt="歌曲恋人" usemap="#concert-map" width="460px"height="460px"> <map name="concert-map"> <area shape="rect" coords="0,0,470,470" href="https://www.bilibili.com/video/BV1pE421N7Vi/?spm_id_from=333.337.search-card.all.click" alt="恋人" title="恋人歌曲MV"> </map> < img src="images/Star Crossing Night.png" alt="歌曲Star Crossing Night" usemap="#Star Crossing Night-map" width="460px"height="460px"> <map name="Star Crossing Night-map"> <area shape="rect" coords="0,0,470,470" href="https://www.bilibili.com/video/BV1EYhQz6EM5/" alt="Star Crossing Night" title="Star Crossing Night歌曲MV"> </map> </section> <section id="featured-music"> <h2>本日推荐</h2> <div class="music-info"> <div class="music-player"> <h3>《我用什么把你留住》</h3> <p>是福禄寿FloruitShow创作的一首关于生命、失去与珍惜的哲思之作。</p > <p>“在这浩瀚星河你是什么</p > <p>在她温柔眼眸的你是什么</p > <p>闪着光坠落 又依依不舍</p > <p>所以生命啊 它璀璨如歌</p > <p>你一定要看到花开</p > <p>你一定等燕子归来</p > <p>想着它们都会回来</p > <p>你誓死为了这些而存在”</p > <div class="media-container"> <audio src="music/我用什么把你留住.mp3" controls> <source src="music/我用什么把你留住.mp3" type="audio/mpeg"> 您的浏览器不支持音频元素 </audio> </div> </div> <div class="music-player"> <h3>《雪人》</h3> <p>由新锐音乐人驼儿创作,融合电子与说唱元素,带你进入梦幻般的音乐旅程。</p > <p>“来年再见吧雪人 现在这骄阳太旺了</p > <p>等来年都装上嘴唇、鱼尾纹和下巴</p > <p>一期一会喽雪人 我会陪你一起融化的</p > <p>我们把这寒冷忘了</p > <p>让我们把这寒冷都忘了”</p > <div class="media-container"> <video src="shipin/雪人视频.mp4"controls> <source src="【2116 《雪人》-驼儿】https://www.bilibili.com/video/BV1W4XPYxExC?vd_source=dadd11e03a268117e18a56aaf18bcf9e" type="video/mp4"> 您的浏览器不支持视频元素 </video> </div> </div> </div> </section> <section id="music-lists"> <h2>音乐分类</h2> <div class="music-info"> <div class="music-categories"> <h3>热门音乐类型</h3> <ul> <li>流行音乐</li> <li>摇滚乐</li> <li>电子舞曲</li> <li>古典音乐</li> <li>爵士乐</li> </ul> </div> <section id="table"> <h2>音乐排行榜与信息表</h2> <table> <thead> <tr> <th rowspan="2">排名</th> <th rowspan="2">歌曲名称</th> <th colspan="2">相关信息</th> </tr> <tr> <th>歌手</th> <th>发行年份</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>《恋人》</td> <td>李荣浩</td> <td>2024-10-18</td> </tr> <tr> <td>2</td> <td>《打火机》</td> <td>Penny</td> <td>2025-06-05</td> </tr> <tr> <td>3</td> <td>《Star Crossing Night》</td> <td colspan="2" style="text-align: center;">徐明浩/GALI</td> </tr> <tr> <td>4</td> <td>《如果呢》</td> <td>郑润泽</td> <td rowspan="2" style="text-align: center;">2021</td> </tr> <tr> <td>5</td> <td>《还是会想你》</td> <td>林达浪/h3R3</td> </tr> </tbody> </table> </section> </div> <h3>音乐术语词典</h3> <dl> <dt>和弦 (Chord)</dt> <dd>三个或更多不同音高的音符同时发声</dd> <dt>节奏 (Rhythm)</dt> <dd>音乐中时间组织的模式,包括节拍和节奏型</dd> <dt>音色 (Timbre)</dt> <dd>声音的品质特征,使不同乐器演奏相同音符时产生区别</dd> </dl> </div> </section> <!-- 表单部分 --> <section id="contact"> <section id="contact"> <h2><i class="fas fa-edit"></i> 音乐爱好者反馈表单</h2> <form action="#" method="post"> <fieldset> <legend>👤 个人信息</legend> <label for="name"><i class="fas fa-user"></i> 姓名:</label> <input type="text" id="name" name="name" required placeholder="请输入您的姓名"> <label for="email"><i class="fas fa-envelope-open"></i> 邮箱:</label> <input type="email" id="email" name="email" required placeholder="example@domain.com"> <label for="website"><i class="fas fa-globe"></i> 个人主页:</label> <input type="url" id="website" name="website" placeholder="https://your-site.com"> <label for="phone"><i class="fas fa-phone"></i> 电话号码:</label> <input type="tel" id="phone" name="phone" placeholder="138-0000-0000"> </fieldset> <fieldset> <legend>🎧 偏好设置</legend> <label><i class="fas fa-check-square"></i> 喜欢的音乐类型:</label> <label><input type="checkbox" name="genre" value="pop"> <i class="fas fa-music"></i> 流行</label> <label><input type="checkbox" name="genre" value="rock"> <i class="fas fa-drum"></i> 摇滚</label> <label><input type="checkbox" name="genre" value="electronic"> <i class="fas fa-synagogue"></i> 电子</label> <label for="experience"><i class="fas fa-star-half-alt"></i> 音乐经验:</label> <select id="experience" name="experience"> <option value="">请选择</option> <option value="beginner">初学者</option> <option value="intermediate">中级</option> <option value="expert">专家</option> </select> <label><i class="fas fa-question-circle"></i> 是否愿意参加线下活动?</label> <label><input type="radio" name="event" value="yes"> ✅ 是</label> <label><input type="radio" name="event" value="no"> ❌ 否</label> </fieldset> <fieldset> <legend>其他信息</legend> <label for="birthday">出生年份:</label> <input type="date" id="birthday" name="birthday"> <label for="message">留言:</label> <textarea id="message" name="message" rows="4" placeholder="写下您的想法..."></textarea> <button type="submit">提交反馈</button> </fieldset> </form> <section id="resources"> <h2>音乐学习资源</h2> <ul> <li>在线音乐课程平台</li> <li>乐器选购指南</li> <li>音乐制作软件推荐</li> <li>本地音乐工作坊信息</li> </ul> </section> <footer> <p>© 2025 沉浸式音乐体验 | 使用HTML5技术构建</p > <p>视频来源:哔哩哔哩 | 音频来源:网易云音乐</p > </footer> </body> </html 根据以上代码,加入1.样式引入:在网页中引入 CSS3 样式的方式,包括行内样式、内嵌样式表和链接样式表。 2.使用选择器: 基本选择器:标签选择器、类选择器、ID选择器 复合选择器:交集选择器、并集选择器、后代选择器、子代选择器 伪类选择器:锚点伪类,有":link"和":visited";行为伪类,有":hover"、":active"和":focus"; 3.尝试一下ess样式的继承性和层叠性。继承性是指在 HTML5 结构中,后代元素会继承祖先元素的 CSS3 样式。层叠性是指当为一个元素设置了多个样式时,这些样式会根据各自的权重来确定呈现的优先级,然后其中一个值会层叠/覆盖掉其他值,并显示最终效果。
10-22
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值