《Web前端设计与开发》实验一:HTML基本标签实验2

一、实验内容

  1. 编程实现下面表单:
    在这里插入图片描述

二、实验代码及成品

<!doctype html>    <!--  html5的文档声明   -->
<html>
    <head>
        <meta charset="UTF-8">    <!-- meta标签用来设置网页的一些元数据,比如网页的字符集,关键字,简介,meta是一个自结束标签   -->
        <title>产品基本信息表单</title>
        <style type="text/css">       <!--  去掉网页的横线   -->
            <!--
            a:link {
     
     
                text-decoration: none;
            }
            a:visited {
     
     
                text-decoration: none;
            }
            a:hover {
     
     
                text-decoration: none;
            }
            a:active {
     
     
                text-decoration: none;
            }
            -->
        </style>

    </head>

    <body>
    <!--  border="0"将表格线隐藏   cellspacing="0"将表格单元格间距设为0  -->
    <table border="0" align="center" cellspacing="0">

        <tr align="left" bgcolor="#d3d3d3">
            <th colspan="4" height="40">产品基本信息</th>
        </tr>

        <tr>
            <td height="40" width="100" align="right" style="color: red">*</td>
            <td width="70" align="right">产品名称</td>
            <td width="20" align="left"><img src="wenhao.png" width="15" height="15"></td>
            <td width="500" align="left">
                <form>
                    <input type="text" name="产品名称" placeholder="如:PU女士手提包(CK12002)" style="width: 300px">
                </form>
            </td>
        </tr>

        <tr>
            <td height="40" width="100" align="right">&nbsp;</td>
            <td width="70" align="right">产品型号</td>
            <td width="20" align="left"><img src="wenhao.png" width="15" height="15"></td>
            <td width="500" align="left">
                <form>
                    <input type="text" name="产品型号" style="width:220px">
                </form>
            </td>
        </tr>

        <tr>
            <td height="40" width="100" align="right" style="color: red">*</td>
            <td width="70" align="right">产品图片</td>
            <td width="20" align="left"><img src="wenhao.png" width="15" height="15"></td>
            <td width="500" align="left">
                <form>
                    <input type="radio" name="产品图片" value="上传单张图片">上传单张图片
                    <input type="radio" name="产品图片" value="上传多张图片">上传多张图片
                    <p style="color: #999999;font-size: small;display: inline">&emsp;您已提交10个多图产品,还可以提交0个</p>
                </form>
            </td>
        </tr>

        <tr>
            <td colspan="3">&nbsp;</td>
            <td width="500" align="left">
                <input id="anywhere-upload-input" data-action="anywhere-upload-input" class="hidden-visibility" type="file" accept=".jpg,.jpeg" multiple style="display: none">
                <script defer data-cfasync="false" src="https://imgchr.com/lib/Peafowl/js/scripts.min.js?7327332198c9e6bf7273393e2b94088a" id="jquery-js" onload="jQueryLoaded(this, event)"></script>
                <script defer data-cfasync="false" src="https://imgchr.com/lib/Peafowl/peafowl.min.js?7327332198c9e6bf7273393e2b94088a" id="peafowl-js"></script>
                <button data-trigger="anywhere-upload-input">本地上传</button>
                <button data-trigger="anywhere-upload-input">从图片库选取</button>
            </td>
        </tr>

        <tr>
            <td colspan="4">&nbsp;</td>
        </tr>

        <tr>
            <td colspan="3">&nbsp;</td>
            <td width="500" align="left">
                <p style="color: #999999;font-size: small;display: inline">-最多添加10个多图产品,每个多图产品最多展示6张图片。</p>
            </td>
        </tr>

        <tr>
            <td colspan="3">&nbsp;</td>
            <td width="500" align="left">
                <p style="color: #999999;font-size: small;display: inline">-jpg或jpeg格式;不超过300k。</p>
            </td>
        </tr>

        <tr>
            <td colspan="4">&nbsp;</td>
        </tr>

        <tr>
            <td>&nbsp;</td>
            <td width="70" align="right">
                <form>
                    <code style="color: red">*</code>
                    <code width="70" align="right" style="font-size: medium ; font-family: 等线">关键词</code>

                </form>
            </td>
            <td width="20" align="left"><img src="wenhao.png" width="15" height="15"></td>
            <td width="500" align="left">
                <form>
                    <input type="text" name="关键词" style="width: 220px">
                    <a href="http://www.chanpin.biz/" target="_blank" style="color: #0045be;text-decoration-line: none">关键词建议</a>
                </form>
            </td>
        </tr>

        <tr>
            <td colspan="3">&nbsp;</td>
            <td width="500" align="left"><img src="jiahao.png" width="13" height="13">
            <a href="http://www.chanpin.biz/" target="_blank" style="color: #0045be;text-decoration-line: none">添加更多关键词</a>
            </td>
        </tr>

        <tr>
            <td colspan="3">&nbsp;</td>
            <td width="500" align="left">
                <p style="color: #999999;font-size: small;display: inline">-请在每个文本框中输入一个用于描述您产品的关键词,并控制在48个字符以内。</p>
            </td>
        </tr>

        <tr>
            <td colspan="4">&nbsp;</td>
        </tr>

        <tr>
            <td>&nbsp;</td>
            <td colspan="2" width="70" align="right">
                <form>
                    <code style="color: red">*</code>
                    <code width="70" align="right" style="font-size: medium ; font-family: 等线">产品类别&nbsp;</code>
                </form>
            </td>
            <td width="500" align="left">
                <form>
                    <button data-trigger="anywhere-upload-input">选择目录</button>
                    <code style="font-size: small">找不到想要的目录?</code>
                    <a data-trigger="anywhere-upload-input" style="font-size: small;color: #0045be">点这里</a>
                    <code style="font-size: small"></code>
                </form>
            </td>
        </tr>

        <tr>
            <td>&nbsp;</td>
            <td colspan="2" width="70" align="right">
                <form>
                    <code width="70" align="right" style="font-size: medium ; font-family: 等线">产品分组&nbsp;</code>
                </form>
            </td>
            <td width="500" align="left">
                <form action="/demo/demo_form.asp">
                    <input list="cpfz" placeholder="请选择产品组">
                    <datalist id="cpfz" name="产品分组" style="width:180px">
                        <option>服饰</option>
                        <option>家电</option>
                        <option>食品</option>
                    </datalist>
                </form>
            </td>
        </tr>

        <tr>
            <td height="40" width="100" align="right" style="color: red">*</td>
            <td width="70" align="right">产品描述</td>
            <td width="20" align="left"><img src="wenhao.png" width="15" height="15"></td>
            <td width="800" align="left">
                <form>
                    <input type="radio" name="产品描述" value="富文本">富文本
                    <input type="radio" name="产品描述" value="纯文本">纯文本
                    <p style="color: #999999 ;font-size: small;display: inline">您已提交23个富文本产品,还可以提交97。</p>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <select  style="color:  #0045be; appearance: none; outline: none">
                        <option style="color: white;alignment: right; outline: white; -webkit-appearance: none">编辑</option>
                    </select>
                </form>
            </td>
        </tr>

        <tr>
            <td colspan="3">&nbsp;</td>
            <td width="800" align="left">
                <iframe src="富文本编辑器.html" frameborder="0" width="700" height="300"></iframe>
            </td>
        </tr>

        <tr>
            <td colspan="3">&nbsp;</td>
            <td width="500" align="left">
                <p style="color: #999999;font-size: small;display: inline">-最多100个产品可使用富文本模式编辑,每个产品最多可以在描述里插入3张图片;jpg或jpeg格式;不超过300k。</p>
            </td>
        </tr>

        <tr>
            <td colspan="3">&nbsp;</td>
            <td width="500" align="left">
                <p style="color: #999999;font-size: small;display: inline">-文本内容控制在60-4000个字符内。</p>
            </td>
        </tr>
    </table>

    <br><br>

    <table  border="0" align="center" cellspacing="0">

        <tr align="left" bgcolor="#dcdcdc">
            <th colspan="4" height="40" width="1005">
                产品贸易
                <img src="wenhao.png" width="15" height="15">
                &nbsp;&nbsp;
                <p style="color: #999999;font-size: small;display: inline">详细填写您的报价,让其更易被买家关注。</p>
                <p style="display: inline">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                </p>
                <input align="right" type="checkbox">可洽谈
            </th>
        </tr>

        <tr>
            <td colspan="4">&nbsp;</td>
        </tr>

        <tr>
            <td colspan="2"  align="right">
                <form>
                    <code style="color: red">*</code>
                    <code width="200" align="right" style="font-size: medium; font-family: 等线">最小订单量&nbsp;</code>
                </form>
            </td>
            <td width="800" align="left">
                <form>
                    <input type="text" name="最小起订量" style="width: 100px">
                    &nbsp;
                    <select style="width: 100px">
                        <option></option>
                        <option></option>
                        <option>千克</option>
                    </select>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <p style="display: inline;color: red">*</p>
                    <p style="display: inline">FOB价格(USD)</p>
                    <input type="text" name="最小起订量" style="width: 100px">
                    &nbsp;
                    <select style="width: 100px">
                        <option></option>
                        <option></option>
                        <option>千克</option>
                    </select>
                </form>
            </td>
            <td>&nbsp;</td>
        </tr>

        <tr>
            <td colspan="2">&nbsp;</td>
            <td width="800" height="40" align="left">
                <img src="jiahao.png" width="13" height="13">
                <p style="color: #0045be;display: inline">添加价格区间</p>
            </td>
            <td>&nbsp;</td>
        </tr>

        <tr>
            <td height="40" width="100">&nbsp;</td>
            <td width="100" align="right" style="font-size: medium">港口&nbsp;</td>
            <td width="800" align="left">
                <input type="text" width="500" style="width: 250pt">
            </td>
            <td>&nbsp;</td>
        </tr>

        <tr>
            <td colspan="2" width="70" align="right">
                <form>
                    <code style="color: red">*</code>
                    <code width="70" align="right" style="font-size: medium; font-family: 等线">支付方式&nbsp;</code>
                </form>
            </td>
            <td width="800" align="left">
                <form>
                    <input type="checkbox" name="支付方式" value="L/C">L/C&nbsp;&nbsp;
                    <input type="checkbox" name="支付方式" value="T/T">T/T&nbsp;&nbsp;
                    <input type="checkbox" name="支付方式" value="D/P">D/P&nbsp;&nbsp;
                    <input type="checkbox" name="支付方式" value="Paypal">Paypal&nbsp;&nbsp;
                    <input type="checkbox" name="支付方式" value="Money Gram">Money Gram&nbsp;&nbsp;
                    <input type="checkbox" name="支付方式" value="Western Union">Western Union&nbsp;&nbsp;
                    <input type="checkbox" name="支付方式" value="Others">Others
                </form>
            </td>
            <td>&nbsp;</td>
        </tr>

    </table>

    <br><br>

    <table  border="0" align="center" cellspacing="0">

        <tr align="left" bgcolor="#dcdcdc">
            <th colspan="4" height="40" width="1005">
                展示字段自定义
                <img src="wenhao.png" width="15" height="15">
                &nbsp;
                <p style="color: #999999;font-size: small;display: inline">可以从产品属性、自定义属性、交易条件中选择2个自定义信息用于展示厅产品介绍页面的优先展示。</p>
            </th>
        </tr>

        <tr>
            <td colspan="4">&nbsp;</td>
        </tr>

        <tr>
            <td height="40" width="100" align="right">&nbsp;</td>
            <td width="100" align="right">交易条件&nbsp;</td>
            <td width="800" align="left">
                <form>
                    <input type="checkbox">港口&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">支付方式&nbsp;&nbsp;&nbsp;&nbsp;
                </form>
            </td>
            <td>&nbsp;</td>
        </tr>

        <tr>
            <td height="40" width="80" align="right">&nbsp;</td>
            <td width="90" align="right">产品属性&nbsp;</td>
            <td width="800" align="left">
                <form>
                    <input type="checkbox">外观&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">应用&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">成分&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">目标市场&nbsp;&nbsp;&nbsp;&nbsp;
                </form>
            </td>
            <td>&nbsp;</td>
        </tr>

        <tr>
            <td height="40" width="80" align="right">&nbsp;</td>
            <td width="90" align="right">自定义属性&nbsp;</td>
            <td width="800" align="left">
                <form>
                    <input type="checkbox">FOB&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">CFR&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">CIF&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">DAT&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">FAS&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">DDP&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">DAP&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox">FOB
                </form>
            </td>
            <td>&nbsp;</td>
        </tr>

    </table>

    </body>
</html>

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43795975/article/details/108783760